Friday 20 November 2015

IBPS IT SO-Operating System-Deadlock Recovery

Deadlock Recovery

1) A deadlock can be broken by : (choose all that apply)
a) abort one or more processes to break the circular wait
b) abort all the process in the system
c) preempt all resources from all processes
d) to preempt some resources from one or more of the
 deadlocked processes
Answer: a and d
Explanation: None.
2) The two ways of aborting processes and eliminating deadlocks are : (choose all that apply)
a) Abort all
 deadlocked processes
b) Abort all processes
c) Abort one process at a time until the deadlock cycle is eliminated
d) All of these
Answer: a and c
Explanation: None.
3) Those processes should be aborted on occurrence of a deadlock, the termination of which :
a) is more time consuming
b) incurs minimum cost
c) safety is not hampered
d) All of these
Answer: b
Explanation: None.
4) The process to be aborted is chosen on the basis of the following factors : (choose all that apply)
a) priority of the process
b) process is interactive or batch
c) how long the process has computed
d) how much more long before its completion
e) how many more resources the process needs before its completion
f) how many and what type of resources the process has used
g) how many resources are
 available in the system
h) All of these
Answer: a, b, c, d, e, f
Explanation: None.
5) Cost factors of process termination include : (choose all that apply)
a) number of resources the deadlock process is holding
b) CPU utilization at the time of deadlock
c) amount of time a
 deadlocked process has thus far consumed during its execution
d) All of the above
Answer: a and c
Explanation: None.
6) If we preempt a resource from a process, the process cannot continue with its normal execution and it must be :
a) aborted
b) rolled back
c) terminated
d) queued
Answer: b
Explanation: None.
7) To _______ to a safe state, the system needs to keep more information about the states of processes.
a) abort the process
b)
 roll back the process
c) queue the process
d) None of these
Answer: b
Explanation: None.
8) If the resources are always preempted from the same process, __________ can occur.
a) deadlock
b) system crash
c) aging
d) starvation
Answer: d
Explanation: None.
9) The solution to starvation is :
a) the number of rollbacks must be included in the cost factor
b) the number of resources must be included in resource preemption
c) resource preemption be done instead
d) All of these
Answer: a
Explanation: None.

No comments:

Post a Comment