Wednesday, December 1, 2010

semaphores

A semaphore is an integer with the following function

1.  Intialize

2. Wait : if negative then decrement and block

3. Signal : Increment and wake a blocked thread

No comments:

Post a Comment