in Operating System
966 views
0 votes
0 votes

In the context of a Deadlock, what is the difference between Mutual Exclusion and Hold and Wait ?

In case of Hold and Wait, a process holds atleast one resource. Doesn't this correspond to Mutual Exclusion, where atleast one resource is held in a non-shareable mode ??

in Operating System
by
966 views

1 comment

ME means that there should be some resource, required by more than 1 process and can be used by ONLY 1 process at a time.

Hold and wait means one process is taking for one resource and is waiting for another resource, then it will not leave the resource it is holding, and some other process will be waiting for it to release the resource and so on.
1
1

1 Answer

0 votes
0 votes

Mutual exclusion: if one process in critical section then others can't enter in critical section.

http://www.personal.kent.edu/~rmuhamma/OpSystems/Myos/mutualExclu.htm

Hold and wait: a process contain a resource that is requested by others or not and trying to wait for another instance of resource that is held by other process

Related questions