CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following two-process synchronization soultion
Process 0
Entry: loop while (turn ==1);
(critical section)
Exit: turn =1;
Process 1
Entry: loop while (turn ==0);
(critical section)
Exit: turn =0;
The shared variable turn in initialized to zero.
Which one of the following is TRUE?



Open in App
Solution

Given problem is strict alteration problem in which one process go into critical section or not is decided by non critical section of another process.
So, progress property is not satisfied.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Critical Section Problem and Conditions
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon