• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE CS 2019 | Question 48

Consider the following snapshot of a system running n concurrent processes. Process i is holding Xi instances of a resource R, 1 ≤ i ≤ n. Assume that all instances of R arecurrently in use. Further, for all i, process i can place a request for at most Yi additional instances of R while holding the Xt instances it already has. Of the n processes, there are exactly two processes p and q such that Yp = Yq = 0. Which one of the following conditions guarantees that no other process apart from p and q can complete execution?

(A)

Xp + Xq < Min {Yk ⏐ 1 ≤ k ≤ n, k ≠ p, k ≠ q}

(B)

Min (Xp, Xq) ≥ Min {Yk ⏐ 1 ≤ k≤ n, k ≠ p, k ≠ q}

(C)

Min (Xp, Xq) ≤ Max {Yk ⏐ 1 ≤ k ≤ n, k ≠ p, k ≠ q}

(D)

Xp + Xq < Max {Yk ⏐ 1 ≤ k ≤ n, k ≠ p, k ≠ q}

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments