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
What is one way to ensure that a circular-wait condition does not occur?
Free
(Essay)
4.7/5
(39)
Correct Answer:
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:
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)
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)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)