Suppose processes P 0 and P 1 share variable V 2 , processes P 1 and P

Question:

Suppose processes P0 and Pshare variable V2, processes P1 and P2 share variable V0, and processes P2 and P3 share variable V1.

a. Show how the processes can use enableInterrupt ( ) and disableinterrupt ( ) to coordinate access to V0, V1, and V2 so that the critical section problem does not occur. 

b. Show how the processes can use semaphores to coordinate access to V0, V1, and V2 so that the critical section problem does not occur.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: