Question: For n (>10) cooperating processes P1, P2, ..., Pn, they are implemented in the following ways, where S is semaphore with initial value of 1.

 For n (>10) cooperating processes P1, P2, ..., Pn, they are

For n (>10) cooperating processes P1, P2, ..., Pn, they are implemented in the following ways, where S is semaphore with initial value of 1. REPEAT P(S) Critical Section V(S) remainder section UNTIL FALSE Which is the following statement is correct if these n processes are launched simultaneously? a. None of the above b. If these processes have been executing for t time, and there is no process in its critical section; Now there are some processes requesting to enter the critical section, then the OS would select them to enter per some order without postponing indefinitely c. If Process P1 is executing in the critical section, then process P2 is not allowed to enter, but Process P3 can enter its critical section. d. For any process requesting to enter its critical section, it only needs to wait (n-1)L time, where L is the execution time of a process in one loop (between REPEAT and UNTIL). e. All of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!