

MCQOPTIONS
Saved Bookmarks
1. |
Consider Peterson s algorithm for mutual exclusion between two concurrent processes i and j. The program executed by process is shown below. |
A. | flag [j] = true and turn = i |
B. | flag [j] = true and turn = j |
C. | flag [j] = true and turn = j |
D. | flag [j] = true and turn = i |
Answer» C. flag [j] = true and turn = j | |