Friday 20 November 2015

IBPS IT SO Operating system Deadlock Detection

Deadlock Detection

1) The wait-for graph is a deadlock detection algorithm that is applicable when :
a) all resources have a single instance
b) all resources have
 multiple instances
c) both a and b
Answer: a
Explanation: None.
2) An edge from process Pi to Pj in a wait for graph indicates that :
a) Pi is waiting for Pj to release a resource that Pi needs
b) Pj is waiting for Pi to release a resource that Pj needs
c) Pi is waiting for Pj to leave the system
d) Pj is waiting for Pi to leave the system
Answer: a
Explanation: None.
3) If the wait for graph contains a cycle :
a) then a deadlock does not exist
b) then a deadlock exists
c) then the system is in a safe state
d) either b or c
Answer: b
Explanation: None.
4) If deadlocks occur frequently, the detection algorithm must be invoked ________.
a) rarely
b) frequently
c) None of these
Answer: b
Explanation: None.
5) The disadvantage of invoking the detection algorithm for every request is :
a) overhead of the detection algorithm due to consumption of memory
b) excessive time consumed in the request to be allocated memory
c) considerable overhead in computation time
d) All of these
Answer: c
Explanation: None.
6) A deadlock eventually cripples system throughput and will cause the CPU utilization to ______.
a) increase
b) drop
c) stay still
d) None of these
Answer: b
Explanation: None.
7) Every time a request for allocation cannot be granted immediately, the detection algorithm is invoked. This will help identify : (choose all that apply)
a) the set of processes that have been
 deadlocked
b) the set of processes in the deadlock queue
c) the specific process that caused the deadlock
d) All of these
Answer: a and c
Explanation: None.
8) A computer system has 6 tape drives, with ‘n’ 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 :
a) 2
b) 3
c) 4
d) 1
Answer: a
Explanation: None.
9) A system has 3 processes sharing 4 resources. If each process needs a maximum of 2 units then, deadlock :
a) can never occur
b) may occur
c) has to occur
d) None of these
Answer: a
Explanation: None.
10) ‘m’ processes share ‘n’ resources of the same type. The maximum need of each process doesn’t exceed ‘n’ and the sum of all their maximum needs is always less than m+n. In this setup, deadlock :
a) can never occur
b) may occur
c) has to occur
d) None of these
Answer: a
Explanation: None.

No comments:

Post a Comment