adplus-dvertising
frame-decoration

Question

Choose the correct option regarding deadlock.

a.

If a resource-allocation graph contains no cycles, then no process in the system is deadlocked.

b.

If the graph does contain a cycle, then a deadlock may exist.

c.

Only a

d.

Both a and b are correct.

Posted under Operating System

Answer: (d).Both a and b are correct.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose the correct option regarding deadlock.

Similar Questions

Discover Related MCQs

Q. Which of the following is deadlock avoidance algorithm?

Q.  In a graph the number of vertices of odd degree is always

Q. Consider a computer system with 6 tape drives and 'n' processes completing for them. What is the maximum value of 'n' for the system to be deadlock free? (Assuming that each processes may need 3 tape drives)

Q. A system has 'm' number of resources of same type and 3 processes A, B, C. Share these resources A, B, C which have the peak demand of 3, 4 and 6 respectively. Deadlock will not occur if the value of 'm' is __________.

Q. Which of the following statements is not valid for deadlock prevention scheme?

Q. Which of the following statements is not true for the deadlock prevention and deadlock avoidance schemes?

Q. In an undirected graph, the sum of degrees of all vertices is

Q. From the following statements which one is not a valid deadlock prevention scheme?

Q.  What is known as a race condition?

Q. Which of the following approaches do not require knowledge of the system state?

Q. An operating system contains 3 user processes each requiring 2 units of resource R .The minimum number of units of R such that no deadlocks will ever arise is

Q. Before proceeding with its execution, each process must acquire all the resources it needs is called

Q. To avoid race condition, the maximum number of processes that may be simultaneously inside the critical section is

Q. Which of the following is not the approach to dealing with deadlock ?

Q. Match the following.

i) Mutual exclusion a) A process may hold allocated resources while waiting assignment.
ii) Hold and wait b) No resource can be forcibly removed from a process holding it.
iii) No preemption c) Only one process may use a resource at a time.

Q. A direct method of deadlock prevention is to prevent the occurrences of ...................

Q. ……………. can be defined as the permanent blocking of a set of processed that either complete for system resources or communicate with each other.

Q. The following conditions of policy must be present for a deadlock to be possible.

i) Mutual exclusion ii) Hold and wait
iii) No preemption iv) Circular wait

Q. A direct method of deadlock prevention is to prevent the occurrence of …………..

Q. The simplest way of remove deadlock from the system is to ...