What are the two types of semaphore?

Bờm

Member
What are the two types of semaphore?
Answer
There are two types of semaphores:
  • Binary Semaphores: In Binary semaphores, the value of the semaphore variable will be 0 or 1. …
  • Counting Semaphores: In Counting semaphores, firstly, the semaphore variable is initialized with the number of resources available.
 

Tìm kiếm

Back
Top