Site navigation

Consider the following snapshot of a system. Which of the following is true? Allocation Max Available A…

Both I and II are true. The remaining needs are P1: (0, 0, 0, 0), P2: (0, 7, 5, 0), P3: (1, 0, 0, 2), P4: (0, 0, 2, 0) and P5: (0, 6, 4, 2). Starting with Available = (1, 5,…

Choose your answer

Consider the following snapshot of a system. Which of the following is true?

AllocationMaxAvailable
ABCDABCDABCD
P1001200121520
P210001750
P313542356
P406320652
P500140656

(I) The system is in a safe state.
(II) If a request from process P2 arrives for (0, 4, 2, 0), then the request can be granted.

Select one answer
Answer and explanation

Correct answer C

Both I and II are true. The remaining needs are P1: (0, 0, 0, 0), P2: (0, 7, 5, 0), P3: (1, 0, 0, 2), P4: (0, 0, 2, 0) and P5: (0, 6, 4, 2). Starting with Available = (1, 5, 2, 0), the sequence P1, P3, P4, P2, P5 is a safe sequence, so (I) holds. When P2 requests (0, 4, 2, 0), the request is within its need (0, 7, 5, 0) and within Available (1, 5, 2, 0); after tentative allocation, Available becomes (1, 1, 0, 0) and P2's remaining need becomes (0, 3, 3, 0), from which the same sequence P1, P3, P4, P2, P5 remains safe, so (II) also holds.

Practice for these exams

  • West Bengal SET (WB SET)

Related question papers

Related exam syllabi

Related questions in this topic