Under the Banker’s algorithm, a process has Maximum demand (7, 5, 3) and currently holds Allocation (0, 1, 0). What is its Need vector?
Correct answer C. (7, 4, 3)
Explanation
Need is the remaining amount the process may still request, computed as Need = Max - Allocation, so (7 - 0, 5 - 1, 3 - 0) = (7, 4, 3). Adding instead of subtracting gives (7, 6, 3). The safety algorithm compares each process's Need with the Work vector to decide whether it can finish with the resources currently free.
Answer checked How we write and check questions
Discussion