Q. The following program consists of 3 concurrent processes and 3 binary semaphore.The semaphore are initialized as s0=1, s1=0, s2=0 .
Process p0
{
Wait (s0);
Print '0' ;
Release (s1);
Release (s2);
}
Process p1
Wait (s1);
Release (s0);
Process p2
Wait (s2);
Release (s0);
How many times will p0 print '0'?
A) at least twice
B) exactly twice
C)exactly thrice
D)exactly once
My doubt is that , here the processes can also executes recursively so why they gives ans as "exactly" term please gives proper explanation my assumption is right or wrong?