adspace
Answer Posted / Arpit Kapoor
A semaphore in Unix/Linux is a synchronization primitive used to control access to shared resources. It can be thought of as a counter that is incremented and decremented to manage resource availability. For example, if there are 3 available seats in a theater, a semaphore could be initialized to 3, and each ticket sale would increment the semaphore until it reaches 0, indicating no more seats left.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers