Question

    What is the primary purpose of the Banker's Algorithm in

    operating systems?
    A To manage disk space allocation efficiently. Correct Answer Incorrect Answer
    B To schedule CPU processes and ensure fairness. Correct Answer Incorrect Answer
    C To prevent deadlock by determining safe resource allocation. Correct Answer Incorrect Answer
    D To optimize memory usage and garbage collection. Correct Answer Incorrect Answer
    E To encrypt data and ensure secure communication. Correct Answer Incorrect Answer

    Solution

    The Banker's Algorithm is used in operating systems to prevent deadlock by ensuring that resource allocation requests can be granted without putting the system into an unsafe state. It works on the principle of resource allocation safety and is designed to dynamically assess whether the allocation of resources to a process can be done safely without causing deadlock.

    Practice Next