All Exams Test series for 1 year @ ₹349 only
Question

The processes that are residing in main memory and are ready and waiting to be executed, are kept on a list called

The correct answer is

Ready queue

Understanding Process States and Queues in Operating Systems In an operating system, a process goes through various states during its lifetime. These states represent the current activity or status of the process. One crucial state is the 'Ready' state, and processes in this state are managed using specific queues. What is a Process State? A process can be in one of several states. The most common states include: New: The process is being created. Ready: The process is loaded in main memory and is waiting to be assigned to a processor for execution. Running: The process is currently being executed by the CPU. Waiting (or Blocked): The process is waiting for some event to occur, such as I/O completion or receiving a signal. Terminated: The process has finished execution. The Role of Queues Operating systems use queues to manage processes in different states. These queues help organize processes and facilitate efficient scheduling and resource allocation. Let's look at the options provided in the context of these queues: Process queue: This is a very general term and doesn't refer to a specific queue in the operating system's process management. Job queue: This queue typically holds processes that are waiting to be admitted into main memory from secondary storage (like a hard disk). These are processes waiting to start execution. Ready queue: This queue holds processes that are in the 'Ready' state. These processes have been loaded into main memory and are waiting for the CPU to become available so they can transition to the 'Running' state. This queue is central to CPU scheduling. Execution queue: This is not a standard term used in operating systems to describe processes waiting for the CPU. Processes actively using the CPU are in the 'Running' state, and those waiting for it are in the 'Ready' queue. Based on the definitions, the list containing processes that are in main memory and are ready and waiting to be executed is specifically called the Ready queue. Therefore, the correct answer is the Ready queue. Detailed Analysis of the Question and Options The question specifically asks for the list where processes meet two criteria: They are residing in main memory. They are ready and waiting to be executed. Let's evaluate the options against these criteria: Process queue: Too general. Doesn't specify location (main memory) or state (ready). Job queue: Processes here are typically on disk, waiting to be loaded into main memory. Fails criterion 1. Ready queue: Processes here are loaded in main memory (criterion 1) and are ready to run, waiting for the CPU (criterion 2). This matches perfectly. Execution queue: Not a standard term. Processes that are executing are in the Running state, not waiting in a queue. Thus, the Ready queue is the appropriate term for the list described. Queue Name Typical Location of Processes Typical State of Processes Job Queue Secondary Storage (Disk) Waiting for admission to main memory (New/Admitted) Ready Queue Main Memory Ready (Waiting for CPU) Device Queue(s) Main Memory (Process Control Block refers to queue) Waiting for an I/O device (Waiting/Blocked) Revision Table: Process Management Concepts Term Explanation Process An instance of a program in execution. Process State The current status of a process (New, Ready, Running, Waiting, Terminated). Main Memory RAM, where processes must reside to be executed. Ready State Process is in main memory, waiting for CPU allocation. Ready Queue A list of processes in the Ready state, waiting for the CPU. CPU Scheduler Selects a process from the Ready queue to execute. Additional Information: CPU Scheduling and the Ready Queue The Ready queue is fundamental to CPU scheduling. The CPU scheduler (also known as the short-term scheduler) is responsible for picking one of the processes from the Ready queue and allocating the CPU to it. The way the scheduler selects the next process from the Ready queue depends on the scheduling algorithm being used (e.g., First-Come, First-Served; Shortest Job Next; Priority Scheduling; Round Robin). The performance of the operating system is heavily influenced by how effectively the Ready queue is managed and how the CPU scheduler operates on it. Processes move into the Ready queue when they are created and admitted to memory, or when they finish waiting for an event (like I/O completion) and become ready to run again.

Was this answer helpful?

Important Questions from Process

  1. A computer system has 7 tape drives. There are ‘n’ processes competing for them. Each process may need 2 tape drives. What is the maximum value of ‘n’ for which the system is guaranteed to be deadlock free?

  2. Identify the circumstances under which pre-emptive CPU scheduling is used:

    (a) A process switches from Running state to Ready state

    (b) A process switches from Waiting state to Ready state

    (c) A process completes its execution

    (d) A process switches from Ready to Waiting state

    Choose the correct option:

  3. Match List I with List II

    List I

    List II

    System calls

    Description

    A.

    fork()

    I.

    Sends a signal from one process to another process

    B.

    exec()

    II.

    Indicates termination of the current process

    C.

    kill()

    III.

    Loads the specified program in the memory

    D.

    exit()

    IV.

    Creates a child process

    Choose the correct answer from the options given below :

  4. Assuming that the system call fork () never fails, consider the following C programs P1 and P2 executed on a UNIX / Linux system:

    /*P1*/

    Int main() {

    fork ():

    fork () ;

    fork () ;

    Printf(“Happy\n”);

    }

    /*P2*/

    Int main() {

    fork ();

    Printf(“Happy\n”);

    fork ()

    Printf(“Happy\n”);

    fork () ;

    Printf(“Happy\n”);

    }

    Statement I: P1 displays "Happy" 8 times.

    Statement II: P2 displays "Happy" 12 times.

    In the light of the above statements, choose the correct answer from the options given below

  5. ________ system call creates new process in Unix.

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App