In this approach whenever a process requires to enter the critical section, it has to set its flag as true. For example, If Pi wants to enter it will set FLAG[i]=TRUE. Another variable called TURN indicates the process number which is currently wating to enter into the CS.
Download
0 formats
No download links available.
Using Flag Variable in Critical Section Problem || Process Synchronization || CS Solution | NatokHD