next up previous
Next: Semaphores Up: No Title Previous: Disable interrupts

Lock and Unlock

PROCESS P[i] ;
 begin
   LOCK(L) ;
   {critical section} 
   UNLOCK(L) ;
 end

Implementation of Locks



Omer F Rana
Tue Feb 11 19:19:09 GMT 1997