Computer Science EngineeringVery hard

Banker's algorithm: Available = (3,3,2); P1 has Allocation (2,0,0) and Max (3,2,2) and P1 can run to completion first. What is the Available vector after P1 finishes and releases its resources?

  1. A. (5,3,2)
  2. B. (3,3,2)
  3. C. (7,4,5)
  4. D. (4,3,2)

Correct answer: A. (5,3,2)

Finished processes return their Allocation, so (3,3,2) + (2,0,0) = (5,3,2).

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic