What is the difference between mutex and semaphore?

Answer Posted / sreelakshmi

Mutex can be released only by the thread that had acquired
it where as in semaphore any thread can signal the
semaphore to release the critical section.

If the above concept is true why priority inversion problem
will occur ? The higher priority task can release the
semaphore from lower priority task for its execution....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of a multiprocessor system?

518


What is the largest ram?

526


Is 64gb ram enough for gaming?

549


What is the purpose of hard disk?

601


How do I know if I have a 64 bit processor?

526






What are different tasks of lexical analysis?

570


What is plumbing/piping?

573


What are the different tasks of Lexical analysis?

1719


Give a non-computer example of preemptive and non-preemptive scheduling?

593


How do I check my filesystem?

582


How much ram do I have?

477


What is the multi-treade and models (explain each models)?

2606


What are residence monitors?

657


Should I install 32 bit or 64 bit?

538


What is the trc timing?

580