Download presentation
Presentation is loading. Please wait.
Published byLeony Tedjo Modified over 6 years ago
2
While (lock = 1) wait Lock = 1 <critical section> Lock = 0 While (lock = 1) wait Lock = 1 <critical section> Lock = 0
3
Loop1: While (turn != 1) wait <critical section> turn = 0 <noncritical section> GoToLoop1 Loop0: While (turn != 0) wait <critical section> turn = 1 <noncritical section> GoToLoop0
4
Interested[0]=T Turn = 0 [While (Turn = 0) and (Interested[1]=T) Wait] <critical section> Interested[0] = F Interested[1]=T Turn = 1 [While (Turn = 1) and (Interested[0]=T) Wait] <critical section> Interested[1] = F
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.