What are the two kinds of semaphores?

Đăng Khánh

New member
What are the two kinds of semaphores?
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