Computer Science, asked by Preety4460, 1 year ago

What is a semaphore ? What are different types of the semaphore ? Explain their usage.

Answers

Answered by Shivam9999
0

Semaphore is simply a variable. This variable is used to solve the critical section problem and to achieve process synchronization in the multiprocessing environment.

The two most common kinds of semaphores are counting semaphores

and binary semaphores. Counting semaphore can take non-negative integer values and Binary semaphore can take the value 0 & 1. only.

Similar questions