The permanent blocking of a set of processes that either complete for system resourcesor communicate with each other.
Principals of Deadlock: A set of processes is deadlockedwhen each process in the set is blocked awaiting an event that can only be triggered by another ______.
A. Blocked processin the set
Principals of Deadlock: Joint Progress Diagram:
Path 1: O acquires B and then A and the releasesB and A. When P resumes execution it will be able to to acquire both resources. (T/F)
True.
Principals of Deadlock: Joint Progress Diagram:
Path 3: Q acquires B and then P acquires A. Deadlock isnevitable, because as execution proceeds, ___________.
A. Q will block on A and P will block on B.
Principals of Deadlock: Joint Progress Diagram: Path 4: P acquires Aand then Q acquires B. Is deadlock inevitable, if so why?
Yes. because as execution proceeds, Q will block on A and P will block on B.
Principals of Deadlock: In a joint progress diagram, what is the fatalregion?
if an execution path enter this fatalregion thendeadlock is inevitable. However, deadlock is only inevitable if the joint progress of the two processes creates a path that enters the fatal region.
Principals of Deadlock: Two general categories of resources (?).
A. Reusable and Consumable
Principals of Deadlock: Reusable Resource (defn'):
is a resource that can be safelyused by only oneprocess at a time and is notdepletedby that use. Processes obtain resource units that they later release for reuse by other processes.
Principals of Deadlock: Reusable Resources: In the context of reusable resources, processes obtain resource units that they later release for reuse by other __________.
A. processes.
Principals of Deadlock: Consumable Resources (defn'):
is a resource that can be created (produced) and destroyed(consumed).
Principals of Deadlock: In the context of consumable resources, typically there is no limit on the number of consumable resources of a particular type. An unblocked producing process may create any number of such resources. (T/F)
True
Principals of Deadlock: In the context of reusable resources, what is the best way to deal with the problem of Process Q holding resource A until B is released, and process P holding resource B until A is released?
A. imposing system design constraints concerning the order in resources can be requested.
Principals of Deadlock: In the context of reusable resources, what is the best way to handle requests for main memory?
A. eliminate the possibility of deadlock by using virtual memory.
B. imposing system design constraints concerning the order in which resources can be requested.
C. calling a system level function to figure it out.
D. None of the above.
A. eliminate the possibility of deadlock by using virtual memory.
Principals of Deadlock: Name some examples of consumable resources(?)
interrupts
signals
messages
info in I/O buffers.
Principals of Deadlock: name some examples of reusable resources(?).
processesors
I/O channels
main memory
secondary or disk memory.
devices
data structures (ex. files, databases and semaphores)
Principals of Deadlock: Name the 3 conditions of policy for deadlock to occur. Remember that these three conditions are necessarybut notsufficientfor a deadlock to exist.
Mutual Exclusion
Hold and Wait
No preemption
Principals of Deadlock: Name the requiredcondition for deadlock to occur (?)
Circular wait.
Author
geschw66
ID
319663
Card Set
OS Organization Chapter 6 Part I: Principals of Deadlock William Stallings
Description
Questions and Exercises based on the Operating System Organization class; Spring of 2016 at WUSTL.