adspace


What is the difference between a mutex and a semaphore?

Answer Posted / Bipul Kumar

A mutex (mutual exclusion) allows exclusive access to a shared resource by only one thread at a time, while a semaphore can count multiple resources or events. A semaphore can be used to manage multiple concurrent operations.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

826


What is the latest linux kernel?

1035


What is the latest version of linux?

1022