Exam 8: Deadlocks
Exam 1: Introduction57 Questions
Exam 2: Operating-System Structures42 Questions
Exam 3: Processes55 Questions
Exam 4: Threads Concurrency59 Questions
Exam 5: Cpu Scheduling57 Questions
Exam 6: Synchronization Tools61 Questions
Exam 7: Synchronization Examples57 Questions
Exam 8: Deadlocks40 Questions
Exam 9: Main Memory58 Questions
Exam 10: Virtual Memory54 Questions
Exam 11: Mass-Storage Structure46 Questions
Exam 12: Io Systems30 Questions
Exam 13: File-System Interface50 Questions
Exam 14: File-System Implementation36 Questions
Exam 15: File-System Internals25 Questions
Exam 16: Security32 Questions
Exam 17: Protection32 Questions
Select questions type
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)
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)
What factors influence the decision of when to invoke a detection algorithm?
(Essay)
4.9/5
(31)
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)
The banker's algorithm is useful in a system with multiple instances of each resource type.
(True/False)
4.8/5
(38)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)