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 is readers-writers problem?

554


When does stack (process stack) overflow? What are the remedies?

568


Define trashing?

593


Explain the concept of Thread Pool? what its Benefits?

553


What is the operating system?

634






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

525


Will chkdsk delete my files?

520


Discuss some of the reasons for implementing process migration ?

2564


Draw the states of a process in an OS.

603


Explain what is meant by CORE DUMPS?

598


What do you call a bootable disk that contains a full usable os?

539


What is cpu scheduler?

585


Explain the booting process of a windows xp system.

584


What are the 3 types of software?

547


What is an OS? Explain it to a layman.

567