adspace


Is binary semaphore same as mutex?

Answer Posted / Amber Goel

A binary semaphore and a mutex serve similar purposes in managing concurrent access to shared resources, but there are subtle differences between them. A binary semaphore can only take on the values 0 or 1, while a mutex has no such limitation. However, in practice, binary semaphores are often used for mutual exclusion, making them quite similar to mutexes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of linux?

1022


What is the latest linux kernel?

1035


How do I search for files containing specific text in linux?

826