Consider the following process and resource requirement... P1(Used: 1,2 Max: 1,3), P2(1,1 1,2), P3(2,4 1,4). Type 1 total 5, Type 2 total 4. Safe state?
- A. Can go to safe or unsafe state based on sequence
- B. Safe state
- C. Unsafe state
- D. Deadlock state
Answer: C. Unsafe state
Explanation: Available = Total - Allocated. Alloc T1: 1+1+2=4. Avail T1 = 5-4=1. Alloc T2: 2+1+4=7? Wait. Table says used P1(1,2), P2(1,1), P3(2,4). Sum T2 used = 2+1+4=7. But question says Total instances of resource type 2 is 4. This implies the system is already in an impossible/invalid state (Allocated > Total). Or maybe 'Used' means current allocation and 'Max' is max need? If used > total, it's error. Let's check numbers. P3 used 4 of Type 2. Total is 4. So P3 holds all Type 2. P1 needs 3 Type 2? (Max 3, Used 2, Need 1). P2 needs 2 (Max 2, Used 1, Need 1). P3 needs 0 (Max 4, Used 4). Avail T2 = 4-7 = -3? Impossible. Typo in question data? Let's check image. Image: Type 2 Used: P1=2, P2=1, P3=4. Total used = 7. Resource Type 2 instances = 4. This is physically impossible. Key says (c) Unsafe state. Probably because requirements cannot be met.