Question: Consider the following pseudo code: P ss 1: execurocetes for (;;) { wait(&S); a; ignal(&Q); s} } P ss 2: execurocetes for (;;) { wait(&Q);
Consider the following pseudo code: P ss 1: execurocetes for (;;) { wait(&S); a; ignal(&Q); s} } P ss 2: execurocetes for (;;) { wait(&Q); b; ignal(&S); s1)What happens if the semaphores S and Q are both initially 1? 2)What happens if one semaphore is initially 1 and the other 0? 3)What happens if both semaphores are initially 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
