Binary Semaphore

Entry Section
while(S==0);
s=s-1;
Critical Section
Exit Section
s=s+1;


Entry Section
Crititcal section
Exit Section
Semaphore value =

Process in blocked state