Which of the following option is a use of Queue?
2016
Which of the following option is a use of Queue?
- A.
Working of recursive function
- B.
function calls
- C.
CPU scheduling
- 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)