Which of the following queues keeps a set of all processes residing in main memory ready and waiting to execute?
Ready queue
In an operating system, processes move between different states (like New, Ready, Running, Waiting, Terminated). To manage these processes efficiently, the OS uses various queues. These queues hold processes that are waiting for a specific resource or an event to occur before they can proceed.
Let's look at the queues mentioned in the options:
The question specifically asks for the queue that keeps a set of all processes "residing in main memory" and "ready and waiting to execute". Let's compare this description with the queues we defined:
The description perfectly matches the definition of the Ready queue.
| Queue Name | Description | Process Location/State |
|---|---|---|
| Job Queue | All processes in the system, waiting for admission to memory. | Secondary Storage (usually), New state |
| Ready Queue | Processes in main memory, ready and waiting for CPU. | Main Memory, Ready state |
| Device Queue | Processes waiting for a specific I/O device. | Main Memory, Waiting state |
Based on the analysis, the queue that holds processes residing in main memory, ready and waiting to execute, is the Ready queue.
Reviewing the different queues helps solidify understanding of process management in operating systems.
The concept of queues is closely linked to process states and CPU scheduling. When a process is in the 'Ready' state, it is in the Ready queue. The CPU scheduler selects one process from the Ready queue to move it to the 'Running' state, where it is executed by the CPU. If a running process needs I/O, it moves to a 'Waiting' state and is placed in a Device queue. Once the I/O is complete, it moves back to the 'Ready' state and is placed back in the Ready queue.
An OS follows round-robin scheduling with time quantum of 4ms. Assuming that the CPU is free now and there are 20 processes waiting in the ready queue, the maximum amount of time that a process waits before getting into the CPU is _________.
| LIST-I | LIST-II |
|---|---|
| A. Short term scheduler | I. Determine which process are added to the system for execution level place them in ready queue. |
| B. Medium term scheduler | II. Select which process should be executed next and allocate CPU time. |
| C. Long term scheduler | III. Manage the degree of multi programming by swapping processes between main memory and disk storage |
| D. I/O Scheduler | IV. Order the input/output requests from processes waiting for I/O operations. |