OPERATING SYSTEM
105403Module 4: Deadlocks
Q1a. A computer system has 9 tape drives, with processes competing for them. Each process may need 3 tape drives. The maximum value of n for which the system is guaranteed to be deadlock free is (i) 9 (ii) 7 (iii) 4 (iv) 620232m
Module 4: Deadlocks
View this question on its own page →A computer system has 9 tape drives, with processes competing for them. Each process may need 3 tape drives. The maximum value of n for which the system is guaranteed to be deadlock free is
(i) 9
(ii) 7
(iii) 4
(iv) 6Q1e. What is the drawback of banker's algorithm? (i) in advance processes rarely know how much resource they will need (ii) the number of processes changes as time progresses (iii) resource once available can disappear (iv) all of the mentioned20242m
Module 4: Deadlocks
View this question on its own page →What is the drawback of banker's algorithm?
(i) in advance processes rarely know how much resource they will need
(ii) the number of processes changes as time progresses
(iii) resource once available can disappear
(iv) all of the mentionedQ1h. When a process waits indefinitely for some resources which are being used by other processes, it is called (i) Starvation (ii) Demand Paging (iii) Segmentation (iv) None of the above20232m
Module 4: Deadlocks
View this question on its own page →When a process waits indefinitely for some resources which are being used by other processes, it is called
(i) Starvation
(ii) Demand Paging
(iii) Segmentation
(iv) None of the aboveQ1h. If the wait for graph contains a cycle, then (i) a deadlock does not exist (ii) a deadlock exists (iii) the system is in a safe state (iv) either deadlock exists or system is in a safe state20222m
Module 4: Deadlocks
View this question on its own page →If the wait for graph contains a cycle, then
(i) a deadlock does not exist
(ii) a deadlock exists
(iii) the system is in a safe state
(iv) either deadlock exists or system is in a safe stateQ1h. Which of the following conditions is required for deadlock to be possible? (i) Mutual exclusion (ii) A process may hold allocated resources while awaiting assignment of other resources (iii) No resource can be forcibly removed from a process holding it (iv) All of the above20192m
Module 4: Deadlocks
View this question on its own page →Which of the following conditions is required for deadlock to be possible?
(i) Mutual exclusion
(ii) A process may hold allocated resources while awaiting assignment of other resources
(iii) No resource can be forcibly removed from a process holding it
(iv) All of the aboveQ1i. Which one of the following is the deadlock avoidance algorithm? (i) Banker's algorithm (ii) Round-robin algorithm (iii) Elevator algorithm (iv) Karn's algorithm20192m
Module 4: Deadlocks
View this question on its own page →Which one of the following is the deadlock avoidance algorithm?
(i) Banker's algorithm
(ii) Round-robin algorithm
(iii) Elevator algorithm
(iv) Karn's algorithmQ4a. Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.20247m
Module 4: Deadlocks
View this question on its own page →Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.
Q5a. What do you understand by deadlock? Discuss the methods to avoid deadlock.20237m
Module 4: Deadlocks
View this question on its own page →What do you understand by deadlock? Discuss the methods to avoid deadlock.
Q5a. Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.20227m
Module 4: Deadlocks
View this question on its own page →Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.
Q5b. State and explain the necessary and sufficient conditions for a deadlock.20237m
Module 4: Deadlocks
View this question on its own page →State and explain the necessary and sufficient conditions for a deadlock.
Q5b. Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.20227m
Module 4: Deadlocks
View this question on its own page →Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.
Q7. Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.202414m
Module 4: Deadlocks
View this question on its own page →Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.
Q8a. Define deadlock. List four necessary conditions for occurrence of deadlock.20197m
Module 4: Deadlocks
View this question on its own page →Define deadlock. List four necessary conditions for occurrence of deadlock.
Q8b. A system contains six units of resource, and n processes that use the resource. What is the maximum value of n for which the system will be deadlock free if the maximum requirement of each process is 3?20197m
Module 4: Deadlocks
View this question on its own page →A system contains six units of resource, and n processes that use the resource. What is the maximum value of n for which the system will be deadlock free if the maximum requirement of each process is 3?