963 views
1 votes
1 votes

Which among the following is not a desirable condition for a system?

I Exclusive access                II Wait while hold.                   III No preemption                    IV Circular wait

a. II only

b. IV only

c. I and III only

d. I, II, III and IV

2 Answers

0 votes
0 votes
Ans: D All are not a desirable condition for system because 1. Mutual Exclusion Condition The resources involved are non-shareable. Explanation: At least one resource (thread) must be held in a non-shareable mode, that is, only one process at a time claims exclusive control of the resource. If another process requests that resource, the requesting process must be delayed until the resource has been released. 2. Hold and Wait Condition Requesting process hold already, resources while waiting for requested resources. Explanation: There must exist a process that is holding a resource already allocated to it while waiting for additional resource that are currently being held by other processes. 3. No-Preemptive Condition Resources already allocated to a process cannot be preempted. Explanation: Resources cannot be removed from the processes are used to completion or released voluntarily by the process holding it. 4. Circular Wait Condition The processes in the system form a circular list or chain where each process in the list is waiting for a resource held by the next process in the list. If all these four condition occurs then the system is considered to be in deadlock
0 votes
0 votes
For a system to be in deadlock state the necessary but insufficient conditions are:

1.mutual exclusion

2.hold & wait

3.no preemption

but the condition that along with the above 3 conditions make the system deadlock is CIRCULAR WAIT.

So, Circular wait is undesirable . answer (B)

Related questions

1 votes
1 votes
4 answers
1
Purple asked Jan 29, 2016
7,708 views
Which of the following is not a necessary condition for a deadlock among processes?(a) Shared Resources(b) No Preemption(c) Acyclic condition among processes(d) None of t...
2 votes
2 votes
4 answers
2
ajit asked Sep 17, 2015
39,458 views
which of the following is not a necessary condition for deadlock?a)Mutual exclusionb)Reentrancyc)Hold and Waitd)No pre-emption
1 votes
1 votes
1 answer
3
Kalpna Bhargav asked Mar 12, 2015
1,140 views
which one of the following process in UNIX operating system does not have a parent process ?(a) sh(b) dev(c) login (d) kernel