112k views
4 votes
What is the correct order of operations for protecting a critical section using a binary semaphore?

User Khurshed
by
8.5k points

1 Answer

2 votes
The correct order of operations for protecting a critical section using a binary semaphore is : wait() followed by signal(). It is limited to the values 0 and 1 (or locked/unlocked, unavailable/available) and it is used to implement locks.
User Bartosz Ptaszynski
by
8.3k points