Semaphores

 


 

Skeleton Code for Binary Semaphore

then remove a process from the queue and place in ready list

else sem :=1;


 

Skeleton Code for Counting Semaphore