adplus-dvertising
frame-decoration

Question

A system has 12 magnetic tape drives and 3 processes : P0, P1, and P2. Process P0 requires 10 tape drives, P1 requires 4 and P2 requires 9 tape drives.

Process
P0
P1
P2

Maximum needs (process-wise : P0 through P2 top to bottom)
10
4
9

Currently allocated (process-wise)
5
2
2


Which of the following sequence is a safe sequence ?

a.

P0, P1, P2

b.

P1, P2, P0

c.

P2, P0, P1

d.

P1, P0, P2

Answer: (d).P1, P0, P2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A system has 12 magnetic tape drives and 3 processes : P0, P1, and P2. Process P0 requires 10 tape drives, P1 requires 4 and P2 requires 9 tape drives. Process P0...

Similar Questions

Discover Related MCQs

Q. What problem is solved by Dijkstra's banker's algorithm?

Q. Four necessary conditions for deadlock to exist are: mutual exclusion, no-preemption, circular wait and

Q. Banker's algorithm for resource allocation deals with

Q. All deadlocks involve conflicting needs for

Q. The fastest form of inter process communication provided in UNIX is

Q. Deadlock prevention strategies are very

Q. A consumable resource is one that can be

Q. A signal is a software mechanism that informs a

Q. No preemption means that a resource is released as

Q. Deadlock avoidance requires knowledge of future

Q. The circular wait condition can be prevented by defining a linear ordering of

Q. An unsafe state is of course a state that is not

Q. Linux includes all of the concurrency mechanism found in other

Q. The dining philosophers problem can be seen as representative of

Q. A direct method of deadlock prevention is to prevent the occurrence of a circular

Q. To solve the dining philosophers, the monitor consist of two

Q. The conditions for deadlock, only one process may use a resource at a

Q. A useful tool in characterizing and allocating of resources to process is the

Q. UNIX provides a variety of mechanisms for inter processor

Q. Deadlock involves reusable