Exam 8: Deadlocks

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The Linux Lockdep tool is

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

A

What is one way to ensure that a circular-wait condition does not occur?

Free
(Essay)
4.7/5
(39)
Correct Answer:
Verified

One way to ensure that this condition never holds is to impose a total ordering of all resource types, and to require that each process requests resources in an increasing order of enumeration. This can be accomplished by assigning each resource type a unique integer number to determine whether one precedes another in the ordering.

What does a claim edge signify in a resource-allocation graph?

Free
(Essay)
4.9/5
(40)
Correct Answer:
Verified

A claim edge indicates that a process may request a resource at some time in the future. This edge resembles a request edge in direction, but is represented in the graph by a dashed line.

Deadlock prevention using preempting allocated resources cannot be used for

(Multiple Choice)
4.9/5
(33)

In a resource allocation graph, when a process releases a resource,

(Multiple Choice)
4.9/5
(38)

Recovery from a deadlock works best when a single process can be identified whose termination will break the circular wait.

(True/False)
4.9/5
(26)

Protocols to prevent hold-and-wait conditions typically also prevent starvation.

(True/False)
4.8/5
(39)

Describe how a safe state ensures deadlock will be avoided.

(Essay)
4.9/5
(31)

In a system that uses deadlock detection algorithm,

(Multiple Choice)
4.8/5
(28)

If the sum of all needs for a resource type exceeds the available number of instances of that resource type, the system state is unsafe.

(True/False)
4.7/5
(33)

Suppose that there are two resource types (R1 and R2) with five resources each available to four processes. At time 0, the following data is collected. The table indicates the process, the number of resources of each type currently allocated to the processes, and the current request of each resource type by each process. Process Allocation Request R1 R2 R1 R2 P0 2 0 3 2 P1 1 1 1 0 P2 0 1 1 1 P3 1 1 3 2 Which of the following sentences is correct?

(Multiple Choice)
4.8/5
(32)

A _____ could be preempted from a process.

(Multiple Choice)
4.9/5
(29)

Describe the four conditions that must hold simultaneously in a system if a deadlock is to occur.

(Essay)
4.9/5
(32)

Describe two protocols to ensure that the hold-and-wait condition never occurs in a system.

(Essay)
4.7/5
(39)

Deadlocks can be prevented only if

(Multiple Choice)
4.8/5
(34)

What is the difference between deadlock prevention and deadlock avoidance?

(Essay)
4.8/5
(32)

One necessary condition for deadlock is ______, which states that a resource can be released only voluntarily by the process holding the resource.

(Multiple Choice)
4.8/5
(39)

Describe a wait-for graph and how it detects deadlock.

(Essay)
4.9/5
(38)

Ordering resources and requiring the resources to be acquired in order prevents the circular wait from occurring and therefore prevents deadlock from occurring.

(True/False)
4.7/5
(30)

Explain what has to happen for a set of processes to achieve a deadlocked state.

(Essay)
4.8/5
(31)
Showing 1 - 20 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)