previous | start | next

Semaphores

As an abstract data type a semaphore sconsists of:

The functions should be atomic. That is, If 2 or more threads attempt to call either of these functions concurrently, the calls will execute one after the other in some order, but execution will not be interleaved with only a part of a function being executed by one thread before another thread starts executing one of the functions.



previous | start | next