WorksheetsEXP-9(VIVA_VOCE)
Total questions: 17
Worksheet time: 9mins
A deadlock avoidance algorithm dynamically examines the __________ to ensure that a circular wait condition can never exist.
a) resource allocation state
b) system storage state
c) operating system
d) resources
A state is safe, if ____________
a) the system does not crash due to deadlock occurrence
b) the system can allocate resources to each process in some order and still avoid a deadlock
c) the state keeps the system protected and safe
d) all of the mentioned
A state is safe, if ____________
a) the system does not crash due to deadlock occurrence
b) the system can allocate resources to each process in some order and still avoid a deadlock
c) the state keeps the system protected and safe
d) all of the mentioned
Which of the following is a necessary condition for a deadlock to occur?
a) mutual exclusion
b) hold and wait
c) no preemption
d) all of the mentioned
In a deadlock situation, which of the following resources cannot be released?
a) resources held by a process
b) resources in the system
c) resources that are not allocated
d) none of the mentioned
What is the primary goal of deadlock detection algorithms?
a) to prevent deadlocks from occurring
b) to identify deadlocks when they occur
c) to recover from deadlocks
d) to allocate resources efficiently
Which of the following strategies can be used to prevent deadlocks?
a) resource allocation graph
b) wait-die scheme
c) wound-wait scheme
d) all of the mentioned
What is the role of a resource allocation graph in deadlock detection?
a) to visualize resource allocation
b) to identify potential deadlocks
c) to manage process states
d) all of the mentioned
Which of the following is NOT a method for recovering from a deadlock?
a) process termination
b) resource preemption
c) process starvation
d) wait for all processes to complete
What is the main purpose of deadlock prevention techniques?
a) to ensure that deadlocks never occur
b) to detect deadlocks after they happen
c) to recover from deadlocks
d) to minimize resource usage
Which of the following is a characteristic of a deadlock?
a) processes are in a waiting state
b) resources are being held indefinitely
c) there is a circular chain of processes
d) all of the mentioned
What does the term 'resource starvation' refer to in the context of deadlocks?
a) a process is permanently denied resources
b) resources are allocated but not released
c) a process is waiting indefinitely for resources
d) all of the mentioned
