GATE CS 2019 · Question 49 · Operating System · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the following snapshot of a system running n concurrent processes. Process i is holding Xᵢ instances of a resource R, 1 ≤ i ≤ n. Assume that all instances of R are currently in use. Further, for all i, process i can place a request for at most Yᵢ additional instances of R while holding the Xᵢ instances it already has. Of the n processes, there are exactly two processes p and q such that Yₚ = Y_q = 0. Which one of the following conditions guarantees that no other process apart from p and q can complete execution?
- (A) Xₚ + X_q < Min {Yₖ | 1 ≤ k ≤ n, k ≠ p, k ≠ q}
- (B) Xₚ + X_q < Max {Yₖ | 1 ≤ k ≤ n, k ≠ p, k ≠ q}
- (C) Min (Xₚ, X_q) ≥ Min {Yₖ | 1 ≤ k ≤ n, k ≠ p, k ≠ q}
- (D) Min (Xₚ, X_q) ≤ Max {Yₖ | 1 ≤ k ≤ n, k ≠ p, k ≠ q}
Answer
Answer (A)
Answer from the official GATE CS 2019 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes