Exam 8: Deadlocks

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

What are the three general ways that a deadlock can be handled?

(Essay)
4.7/5
(37)

Which of the following data structures in the banker's algorithm is a vector of length m, where m is the number of resource types?

(Multiple Choice)
4.8/5
(26)

In a system resource-allocation graph, ____.

(Multiple Choice)
4.7/5
(34)

Which of the following is not a factor in choosing which process to terminate during recovery from a deadlock?

(Multiple Choice)
4.9/5
(29)

The circular-wait condition for a deadlock implies the hold-and-wait condition.

(True/False)
4.8/5
(39)

Describe two methods for eliminating deadlock by aborting a process.

(Essay)
4.8/5
(38)

In the livelock example shown in Figure 8.2,

(Multiple Choice)
4.9/5
(43)

In the deadlock example shown in Figure 8.1,

(Multiple Choice)
4.9/5
(23)

A claim edge in a resource-allocation graph indicates that

(Multiple Choice)
4.9/5
(34)

What factors influence the decision of when to invoke a detection algorithm?

(Essay)
4.9/5
(31)

In a system resource-allocation graph, ____.

(Multiple Choice)
4.8/5
(35)

A system will never enter a deadlocked state if

(Multiple Choice)
5.0/5
(32)

Name three issues that need to be addressed if a preemption is required to deal with deadlocks.

(Essay)
4.7/5
(31)

Deadlock prevention and deadlock avoidance are essentially the same approaches for handling deadlock.

(True/False)
4.7/5
(40)

One necessary condition for deadlock is ____, which states that at least one resource must be held in a nonsharable mode.

(Multiple Choice)
4.9/5
(42)

A system in an unsafe state will ultimately deadlock.

(True/False)
4.8/5
(27)

The banker's algorithm is useful in a system with multiple instances of each resource type.

(True/False)
4.8/5
(38)

Which of the following statement is true?

(Multiple Choice)
4.9/5
(36)

One necessary condition for deadlock is ______, which states that there is a chain of waiting processes whereby P0 is waiting for a resource held by P1, P1 is waiting for a resource held by P2, and Pn is waiting for a resource held by P0.

(Multiple Choice)
4.8/5
(33)

Suppose that there are ten resources available to three processes. At time 0, the following data is collected. The table indicates the process, the maximum number of resources needed by the process, and the number of resources currently owned by each process. Process Maximum Needs Currently Owned P0 10 4 P1 3 1 P2 5 4 At time 1, P1 requests a resource. Which of the following is correct?

(Multiple Choice)
4.8/5
(38)
Showing 21 - 40 of 40
close modal

Filters

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