Suppose a system has 12 magnetic tape drives and at time \(𝑡_0\), three…

PYQ UGC NET 2019

Suppose a system has 12 magnetic tape drives and at time 𝑡0𝑡_0, three processes are allotted tape drives out of their need as given below:

Maximum NeedsCurrent Needsp0105p142p292\begin{array}{ccc} & \text{Maximum Needs} & \text{Current Needs} \\ p_0 & 10 & 5 \\ p_1 & 4 & 2 \\ p_2 & 9 & 2 \end{array}

At time 𝑡0𝑡_0, the system is in safe state. Which of the following is safe sequence so that deadlock is avoided?

  1. A.

    ⟨𝑝0,𝑝1,𝑝2⟩⟨𝑝_0,𝑝_1,𝑝_2⟩

  2. B.

    ⟨𝑝1,𝑝0,𝑝2⟩⟨𝑝_1,𝑝_0,𝑝_2⟩

  3. C.

    ⟨𝑝2,𝑝1,𝑝0⟩⟨𝑝_2,𝑝_1,𝑝_0⟩

  4. D.

    ⟨𝑝0,𝑝2,𝑝1⟩⟨𝑝_0,𝑝_2,𝑝_1⟩

Attempted by 194 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…