Practice mode Operating Systems

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.