What is the difference between a mutex and a semaphore?



What is the difference between a mutex and a semaphore?..

Answer / 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

More Linux General Interview Questions

Is linux a kernel or os?

1 Answers  


What is the best bsd?

1 Answers  


What is the main difference between yum & rpm?

1 Answers  


What does $home mean in linux?

1 Answers  


Can you boot linux on a mac?

1 Answers  


What is a zombie process?

1 Answers  


How the Linux is licensed?

2 Answers  


Why do hackers use linux?

1 Answers  


Can I use kali linux for daily use?

1 Answers  


How do you get the full path of a file in linux?

1 Answers  


What is difference between at and cron?

1 Answers  


After copying a file to a floppy disk, what should you do before removing the disk?

1 Answers  


Categories