| 1. |
What Is Semaphore? |
|
Answer» In computer science, a semaphore is a protected variable or abstract data type which constitutes the CLASSIC method for restricting access to shared resources such as shared memory in a parallel programming environment. A counting semaphore is a counter for a set of AVAILABLE resources, rather than a locked/unlocked flag of a SINGLE RESOURCE. In computer science, a semaphore is a protected variable or abstract data type which constitutes the classic method for restricting access to shared resources such as shared memory in a parallel programming environment. A counting semaphore is a counter for a set of available resources, rather than a locked/unlocked flag of a single resource. |
|