Monday, July 16, 2007

Semaphore

A semaphore is a protected variable and constitutes the classic method for restricting access to shared resources in a multiprogramming environment

The value of the semaphore is initialized to the number of equivalent shared resources it is implemented to control. In the special case where there is a single equivalent shared resource, the semaphore is called a binary semaphore. The general case semaphore is often called a counting semaphore.

No comments: