Multiple choice

Which of the following mutual exclusion methods is the one in which the integer variable 'turn' keeps track of whose turn is to enter the critical section?

  1. Mutual exclusion by disabling interrupts

  2. Mutual exclusion by using lock variable

  3. Mutual exclusion by strict alternation

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the method of mutual exclusion in which the integer variable 'turn' keeps track of whose turn is to enter the critical section.