Google News
logo
Operating System - Quiz(MCQ)
For how many processes which are sharing common data, the Dekker's algorithm implements mutual exclusion?
A)
5
B)
4
C)
3
D)
2

Correct Answer :   2


Explanation :

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 naive turn-taking algorithm, and was one of the first mutual exclusion algorithms to be invented.

Advertisement