What is the difference between mutex and semaphore?

Answer Posted / swetcha

The only real difference between a Semaphore and a Mutex is
that a Semaphore can have a count > 1. While a mutex will
only let one owner attempt access, a Semaphore can be
assigned a number and allow "x" number of threads access.


..........Let me know if it's wrong!

Is This Answer Correct ?    31 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain segmentation with paging?

636


Explain how a copying garbage collector works. How can it be implemented using semispaces?

510


How to take backup using active directory recyclebin concept

1846


What problems are faced during the implementation of a network-transparent system?

554


Who is the father of os?

577






How do I remove prime os from my pc?

511


How many types of os are there?

593


Is x86 better than x64?

497


Differentiate internal commands from external commands.

557


What is the difference between af_inet and pf_inet?

524


Which is better chkdsk r or f?

504


How do you start a startup?

517


What is the trc timing?

584


What is a bootloader?

540


Different types of real-time scheduling?

574