Dekker's algorithm is the first known correct solution to the mutual exclusion problem in concurrent programming. The solution is attributed to Dutch mathematician Th. J. Dekker by Edsger W. Dijkstra in his manuscript on cooperating sequential processes. It allows two threads to share a single-use resource without conflict, using only shared memory for communication.
It avoids the strict alternation of a naïve turn-taking algorithm, and was one of the first mutual exclusion algorithms to be invented.
Read more about Dekker's Algorithm: Introduction, Pseudocode, Note
Famous quotes containing the word dekker:
“Golden slumbers kiss your eyes,
Smiles awake you when you rise.
Sleep, pretty wantons, do not cry,
And I will sing a lullaby:
Rock them, rock them, lullaby.”
—Thomas Dekker (1572?1632?)