Worksheets[Quiz] Deadlock - OS
Total questions: 10
Worksheet time: 5mins
A set of process waits for a resource which is held by another waiting process is called
Deadlock
Starvation
Aging
Preemptive
What is Deadlock ?
resource is assigned to only one process at a time
process owns a resource and claiming the other resource
each waiting process is waiting for the next process in the chain and none is able to get the resource
specific condition when two or more process are waiting for each other release a resource
Which of the following is NOT a necessary condition for deadlock?
Circular Wait
Mutual Relationship
Hold and wait
No pre-emption
What are the ways of dealing with deadlock?
Deadlock prevention
Deadlock recovery
Deadlock detection
All of the mentioned
What is mean by Circular Wait ?
each waiting process is waiting for the next process in the chain and none is able to get the resource
regain the resources
know a deadlock has occurred
calculate cycles about to happen and stop dangerous operation
Identify the CORRECT method for handling deadlock in an operating system.
Ignore deadlock
Circular wait
Wait deadlock
Protect deadlock
Deadlock _________ requires additional information on how resources will be requested
prevention
recovery
detection
avoidance
Detection and recovery incurs ________ for executing
the detection algorithm with possible losses from
recovering from a deadlock
overheads
losses of memory
starvation
overheated
When a detection algorithm detects a deadlock, recovery
methods could be:
inform the operator and the operator deals with the deadlock manually
let the system, recover from the deadlock automatically
break the deadlock
Press Win+Shift+S to terminate proccess
Which situation BEST describing deadlock?
Process 1 use Resource A and ask to use Resource B, Process 2 is currently using Resource B
Process 2 use Resource B and don't need Resources A. Process 1 have release Resource A
