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

asked
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.

Related questions

asked May 16, 2024 167k views
Thotep asked May 16, 2024
by Thotep
8.9k points
1 answer
4 votes
167k views
1 answer
5 votes
92.7k views