0
1.3kviews
With help of neat diagram describe binary semaphore.
1 Answer
0
8views
  • A binary semaphore can only take two values 0 or 1.
  • Semaphore value 0 or 1 is used to indicate availability and unavailability respectively.
  • Consider task 1 and task 2 wanting to access a resource (say printer).
  • Semaphore is like a key when acquired count is 0. Task A acquires …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.