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

Does deleting all files uninstall a program?

534


Is 4gb ram enough for netflix?

649


Explain the reasons for process suspension?

605


What is the safest computer operating system?

589


What is belady's anomaly?

556






Define max, min heap and search time of heap.

653


Explain translation lookaside buffer?

752


How long should a chkdsk take?

522


What does thread safe mean?

601


How do I cancel chkdsk scan?

622


Name the functions constituting the os's memory management.

589


What is the difference between mailbox and queue?

553


What is normal operating system?

559


How do I know if my motherboard is 32 bit or 64 bit?

545


What join() method does?

622