Question : Which component selects a process from the ready queue to run?
Solution :
Correct Answer : Scheduler
Description -
The correct answer is Scheduler (specifically, the CPU Scheduler or Short-Term Scheduler). The CPU scheduler is a core component of the operating system responsible for selecting which process from the Ready queue should be allocated CPU time next. It uses scheduling algorithms (such as Round Robin, Priority Scheduling, or Shortest Job First) to make these decisions, referencing attributes like Priority and Process State stored within each process's PCB. Breakdown of Other Options
Question : Which scheduler selects processes from the job pool in secondary memory?
Solution :
Correct Answer : Long-term scheduler
Description -
The correct answer is Long-term scheduler. The long-term scheduler (also widely referred to as the Job Scheduler) is responsible for selecting processes from the job pool—which resides in mass storage or secondary memory (like a disk)—and loading them into the main memory (RAM). By determining which programs are admitted into the system's primary execution space, the long-term scheduler directly controls the degree of multiprogramming (the number of processes present in memory at one time). It operates less frequently compared to other schedulers, executing only when a process completes and exits the system, creating room for a new job. Breakdown of Other Schedulers
Question : Which scheduler is responsible for swapping processes in and out of memory?
Solution :
Correct Answer : Medium-term scheduler
Description -
The correct answer is Medium-term scheduler. The medium-term scheduler (also known as the Swapping Scheduler) is explicitly designed to handle the moving of processes between the main memory (RAM) and secondary storage (such as a disk swap space). When the main memory becomes overly congested, the medium-term scheduler frees up RAM by removing a process from active execution ("swapping out"). It holds that partially executed process in secondary storage until memory resources clear up or the process's blocked I/O completes. It then brings the process back into RAM ("swapping in") so it can resume exactly where it left off. By doing this, it dynamically adjusts and reduces the degree of multiprogramming when system load is high. Summary Comparison of the Three Main Schedulers Scheduler Type Also Known As Primary Location of Operation Main Responsibility Speed Long-term Job Scheduler Secondary Memory \(\rightarrow \) Main Memory Selects new jobs to load into RAM; controls the initial degree of multiprogramming. Slowest Medium-term Swapping Scheduler Main Memory \(\leftrightarrow \) Secondary Memory Swaps processes in and out of memory to free up RAM space. Medium Short-term CPU Scheduler Ready Queue \(\rightarrow \) CPU core Selects which ready process gets to execute on the CPU core next. Fastest
Question : The medium-term scheduler mainly helps in:
Solution :
Correct Answer : Swapping processes
Description -
The correct answer is Swapping processes. The medium-term scheduler is a memory management component that specializes in swapping processes between the main memory (RAM) and secondary memory (such as a hard drive or SSD swap space). When a system's RAM becomes heavily crowded, this scheduler steps in to temporarily pause a process, remove it from memory, and write its active state data out to disk. This frees up crucial RAM space for other active operations. Once the system load decreases, the medium-term scheduler swaps that process back into RAM so it can seamlessly resume execution. Breakdown of Other Options
Question : Which scheduler reduces the degree of multiprogramming?
Solution :
Correct Answer : Medium-term scheduler
Description -
The correct answer is Medium-term scheduler. The degree of multiprogramming refers to the total number of processes currently residing in the main memory (RAM). When the main memory becomes heavily congested or low on resources, the medium-term scheduler steps in to temporarily remove partially executed processes from RAM and write them to secondary storage (disk). This process is known as swapping out. By moving active processes out of memory, it directly reduces the degree of multiprogramming to optimize system stability and clear up memory space. Differentiating the Core Schedulers
Question : The short-term scheduler selects processes from:
Solution :
Correct Answer : Ready queue
Description -
The correct answer is Ready queue. The short-term scheduler (also known as the CPU Scheduler) is responsible for allocating physical CPU time to processes. It selects a process directly from the Ready queue—which contains all the active processes currently loaded into the main memory (RAM) that are fully prepared and waiting to execute. Because CPU allocation happens continuously every few milliseconds, this scheduler operates at exceptionally high speeds. Breakdown of the Other Options
Question : The long-term scheduler selects processes from:
Solution :
Correct Answer : Job pool in secondary storage
Description -
The correct answer is Job pool in secondary storage. The long-term scheduler (also known as the Job Scheduler) is responsible for controlling the initial entry of programs into the main memory system. When a large number of programs are submitted to a system, they are placed in a job pool within secondary storage (such as a hard drive or SSD). The long-term scheduler reviews this pool, selects which processes should be initialized, and moves them into the main memory's ready queue to be executed. This allows it to directly control the degree of multiprogramming. Breakdown of the Other Options
Question : Which of the following is responsible for suspending and resuming processes?
Solution :
Correct Answer : Medium-term scheduler
Description -
The correct answer is Medium-term scheduler. The medium-term scheduler (also known as the swapping scheduler) is directly responsible for suspending and resuming processes. When the system's main memory (RAM) becomes over-crowded, this scheduler chooses an active process to temporarily halt and remove from memory. This action is called swapping out or suspending the process. Once memory becomes available again or the process finishes waiting for a resource, the medium-term scheduler brings it back into memory—a process called swapping in or resuming—allowing it to pick up exactly where it was paused. Breakdown of Other Options
Question : Which scheduling type allows the OS to interrupt a running process?
Solution :
Correct Answer : Preemptive scheduling
Description -
The correct answer is Preemptive scheduling. In preemptive scheduling, the operating system kernel retains ultimate control over the CPU core. The OS has the authority to forcibly pause or interrupt a currently running process mid-execution, save its state into its Process Control Block (PCB), and allocate the CPU to a different process. These forced context switches typically occur due to: Breakdown of Other Options
Question : In non-preemptive scheduling:
Solution :
Correct Answer : Process runs until completion or blocking
Description -
The correct answer is Process runs until completion or blocking. In non-preemptive scheduling, once the operating system allocates the CPU to a specific process, that process holds onto the CPU exclusively. The operating system cannot forcibly interrupt or take the CPU away from it. The process will continue running uninterrupted until it either: Breakdown of Incorrect Options
Question : Which scheduler ensures a good mix of CPU-bound and I/O-bound processes?
Solution :
Correct Answer : Long-term scheduler
Description -
The correct answer is Long-term scheduler. The long-term scheduler (Job Scheduler) is responsible for selecting processes from the job pool in secondary storage and loading them into the main memory (RAM). To maximize system efficiency and resource utilization, it tries to maintain a balanced mix of CPU-bound and I/O-bound processes: If the long-term scheduler selects only CPU-bound processes, the ready queue will stay full, but the I/O devices will sit completely idle. If it selects only I/O-bound processes, the device queues will get congested while the CPU sits idle. By creating a good mix, it ensures both the CPU core and the hardware peripherals are working simultaneously, keeping system throughput high. Why Other Options Do Not Balance the Mix
Question : Context switching occurs when:
Solution :
Correct Answer : CPU switches from one process to another
Description -
The correct answer is CPU switches from one process to another. A context switch is the core procedure where the operating system kernel stops running one active process on a CPU core and starts running another. To make this swap safely without losing progress, the OS performs two crucial actions: Breakdown of Other Options
Question : Context switching stores process information in:
Solution :
Correct Answer : Process Control Block (PCB)
Description -
The correct answer is Process Control Block (PCB). During a context switch, the operating system pauses a running process and must save its exact execution state so it can return to it later without losing progress. It saves this operational data (including the program counter, general-purpose registers, process state, and memory limits) directly into the process's Process Control Block (PCB). The PCB acts as the official repository in main memory for a process's metadata. Breakdown of Other Options
Question : Which scheduler is mainly involved in time-sharing systems?
Solution :
Correct Answer : Medium-term scheduler
Description -
The correct answer is Medium-term scheduler. In a time-sharing system, the primary objective is to provide quick response times to multiple interactive users or programs sharing the CPU concurrently. Because many processes compete for active memory simultaneously, the system can easily run out of physical RAM. To handle this, time-sharing systems introduce an intermediate level of scheduling called the medium-term scheduler. It manages the swapping of processes in and out of main memory: This active management of memory saturation makes the medium-term scheduler uniquely central to the stability of time-sharing systems. Role of Other Schedulers
Question : A process moved to secondary memory due to lack of RAM is in:
Solution :
Correct Answer : Suspend Ready state
Description -
The correct answer is Suspend Ready state. When a process is fully ready to run but the operating system faces a severe lack of RAM, the medium-term scheduler temporarily removes the process from main memory and moves it to secondary memory (disk storage). This technique is known as swapping out. Because the process was already prepared to execute (was in the Ready state) before being swapped out to free up RAM, its new state becomes Suspend Ready (or Swapped Ready). Once enough RAM becomes available, the OS will swap it back into main memory and return it to the normal Ready state. Breakdown of the Other States
Question : Which operation moves a blocked process back to the ready queue?
Solution :
Correct Answer : Resumption
Description -
The correct answer is Resumption. When a process is in the Blocked (or Waiting) state, it cannot execute because it is waiting for an external event to finish, such as a file loading from a disk or keyboard input from a user. Breakdown of Other Options
Question : Which operation creates a new process in the system?
Solution :
Correct Answer : Creation
Description -
The correct answer is Creation (often referred to as Process Creation or spawning). Creation is the explicitly designated operating system operation that initializes and spawns a new process in the system. During this operation, the operating system allocates a unique Process ID (PID), sets up its initial memory space (Text, Data, Heap, and Stack segments), and builds a brand new Process Control Block (PCB) to track its lifecycle. In modern operating systems like Unix/Linux, this is commonly triggered by system calls like fork() or exec(). Breakdown of Other Options
Question : Which operation selects the next process to execute?
Solution :
Correct Answer : Scheduling
Description -
The correct answer is Scheduling. Scheduling (specifically managed by the operating system's CPU scheduler) is the definitive operation that selects the next process from the ready queue to execute on the CPU. It evaluates available processes using specific scheduling criteria—such as process priority, arrival order, or remaining execution time—to determine which task gets processor access next. Breakdown of Other Options The cleanup operation that closes a process out of system memory and frees up its allocated hardware resources.
Question : When a process waits for an event or resource, the OS performs:
Solution :
Correct Answer : Blocking
Description -
The correct answer is Blocking. When an actively executing process reaches a point where it cannot continue without an external event or resource—such as waiting for a user to press a key, reading a file from a disk, or waiting for a network packet—it cannot use the CPU efficiently. To prevent the CPU from sitting idle, the operating system performs a Blocking operation. The OS changes the process's state from Running to Waiting (or Blocked), moves its Process Control Block (PCB) out of the ready queue and into a device/event queue, and reallocates the CPU core to a different process that is ready to run. Breakdown of Other Options
Question : The deletion of a process is also called:
Solution :
Correct Answer : Killing/Termination
Description -
The correct answer is Killing/Termination. The deletion of a process refers to the operation where a process completes its final instruction or is forcibly stopped by the system. The operating system kernel officially names this phase termination (or killing the process). During this operation, the OS performs critical cleanup tasks: Breakdown of Other Options
Question : Context switching refers to:
Solution :
Correct Answer : Switching CPU from one process to another
Description -
The correct answer is Switching CPU from one process to another. A context switch is the fundamental operating system procedure where the kernel stops running one active process on a CPU core and begins running another. To execute this swap safely without losing progress, the OS performs two critical steps: Breakdown of Other Options
Question : Which structure stores process information like state and scheduling data?
Solution :
Correct Answer : Process Control Block
Description -
The correct answer is Process Control Block. The Process Control Block (PCB) (also known as a task control block) is the primary data structure used by the operating system kernel to store all the information associated with a specific process. Whenever a process is created, the OS allocates a dedicated PCB for it to track its complete execution metadata, including: Breakdown of Other Options
Question : When a process goes from running to waiting state, the CPU:
Solution :
Correct Answer : Is assigned to another process
Description -
The correct answer is Is assigned to another process. When a process transitions from the Running state to the Waiting (or Blocked) state, it is because the process has requested an event that takes time to complete—such as waiting for user input, reading data from a disk, or downloading a file. Because the current process cannot do any more work until that external event finishes, the operating system kernel steps in to maximize system efficiency. The OS performs a context switch: it saves the waiting process's current progress into its Process Control Block (PCB) and immediately assigns the CPU core to another process from the Ready queue that is fully prepared to execute. This ensures the processor stays busy and doesn't waste computing power. Breakdown of Incorrect Options
Question : A process can move from waiting to ready when:
Solution :
Correct Answer : Resource becomes available
Description -
The correct answer is Resource becomes available. A process enters the Waiting (or Blocked) state because it is explicitly waiting for an external event to finish or a specific system resource to be released—such as an I/O operation completing, a file finish downloading, or a printer becoming free. The moment that requested resource becomes available or the event occurs, the hardware sends an interrupt to the operating system. The OS then updates the process's state from Waiting back to Ready and moves its Process Control Block (PCB) into the Ready queue. This signals that the process has everything it needs to execute and is simply waiting for its turn on the CPU. Breakdown of Other Options
Question : Which state occurs only once in the lifetime of a process?
Solution :
Correct Answer : New and Terminated
Description -
The correct answer is New and Terminated. A process state represents a phase in its execution timeline. While a process can cycle between the Ready, Running, and Waiting states hundreds or thousands of times during its execution, the creation and deletion phases are strictly non-repeatable milestones: Breakdown of Cycle-Based States