What is the difference between mutex and semaphore?

Answer Posted / answers

Mutex: Nothing but a binary semaphore.
Mutex definition says "Mutex can lock any number of times,
and also it should unlock any number of times"---meaning,
in re-entrant codes if recursive is used.

In this case it will lock number of times and also should
unlock same number of times.

Semaphore: i think its default-----reeated answers.

Is This Answer Correct ?    9 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a 64 bit processor mean?

547


Explain briefly about linker and its functioning?

574


How can the speed of interrupt driven input output systems be improved?

563


Explain what are device drivers used for?

605


What kind of memory is a ram categorized as?

584






What are old chkdsk files?

603


What are the major differences between Thread and Process?

612


What do you mean by threads in Operating System?

631


Can you tell me the difference between semaphore and mutex.

628


What is a socket?

629


List the possible threads a thread can have?

553


At what mode the fault handler executes?

573


What is the maximum ram for a 64 bit operating system?

529


Explain what you mean by memory alignment.

580


What is the main difference between wait() and sleep() method?

544