Which of the following option is a use of Queue?

2016

Which of the following option is a use of Queue?

  1. A.

    Working of recursive function

  2. B.

    function calls

  3. C.

    CPU scheduling

  4. D.

    Evoluation of mathematical expressions.

Attempted by 128 students.

Show answer & explanation

Correct answer: C

In operating systems, when multiple processes or tasks are waiting to be executed by the CPU, they are placed in a scheduling queue (like a Ready Queue). For instance, in First-Come, First-Served (FCFS) CPU scheduling, processes are dispatched to the CPU in the exact order of their arrival. This orderly, first-come handling inherently requires a Queue data structure.

  • Correct Answer: C (CPU scheduling)

Explore the full course: Btsc Lab Assistant