Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which component of the Operating System is responsible for selecting a process from the ready queue and allocating the CPU to it?
Not quite. Try another option.
Answer: CPU Scheduler
The CPU scheduler (or short-term scheduler) selects a process from the processes in memory that are ready to execute and allocates the CPU to that process.
Question 2 of 50
The module that gives control of the CPU to the process selected by the short-term scheduler is known as:
Not quite. Try another option.
Answer: Dispatcher
The dispatcher involves switching context, switching to user mode, and jumping to the proper location in the user program to restart that program.
Question 3 of 50
What is 'Dispatch Latency'?
Not quite. Try another option.
Answer: The time it takes for the dispatcher to stop one process and start another
Dispatch latency is the overhead time required for the dispatcher to stop the currently running process and start the execution of the newly selected process.
Question 4 of 50
In which of the following situations is CPU scheduling decision mandatory (non-preemptive)?
Not quite. Try another option.
Answer: When a process terminates
Non-preemptive scheduling occurs when a process keeps the CPU until it releases it, either by terminating or by switching to the waiting state.
Question 5 of 50
Which scheduling algorithm results in the 'Convoy Effect'?
Not quite. Try another option.
Answer: First-Come, First-Served
The Convoy Effect occurs in FCFS when short processes wait behind a long process, lowering CPU and device utilization.
Question 6 of 50
What is the primary objective of the Shortest Job First (SJF) scheduling algorithm?
Not quite. Try another option.
Answer: To minimize average waiting time
SJF is provably optimal in that it gives the minimum average waiting time for a given set of processes.
Question 7 of 50
Preemptive Shortest Job First scheduling is also known as:
Not quite. Try another option.
Answer: Shortest Remaining Time First
If a new process arrives with a shorter CPU burst than what is left of the current executing process, the current process is preempted. This is SRTF.
Question 8 of 50
In Round Robin scheduling, if the time quantum is extremely large, the algorithm degenerates into which scheduling policy?
Not quite. Try another option.
Answer: First-Come, First-Served
If the time quantum is very large, every process finishes its CPU burst without interruption, effectively making it FCFS.
Question 9 of 50
What is the major drawback of Priority Scheduling?
Not quite. Try another option.
Answer: Starvation
Starvation (or indefinite blocking) occurs when low-priority processes are left waiting indefinitely because higher-priority processes keep arriving.
Question 10 of 50
Which technique is used to solve the problem of starvation in Priority Scheduling?
Not quite. Try another option.
Answer: Aging
Aging involves gradually increasing the priority of processes that wait in the system for a long time to ensure they eventually execute.
Question 11 of 50
Which scheduling criteria refers to the number of processes that complete their execution per time unit?
Not quite. Try another option.
Answer: Throughput
Throughput is the measure of work done, defined as the number of processes completed per unit of time.
Question 12 of 50
Turnaround time is defined as:
Not quite. Try another option.
Answer: The time from submission of a process to the time of completion
Turnaround time is the sum of the periods spent waiting to get into memory, waiting in the ready queue, executing on the CPU, and doing I/O.
Question 13 of 50
Which scheduling algorithm is designed specifically for time-sharing systems?
Not quite. Try another option.
Answer: Round Robin
Round Robin allows the system to switch between processes quickly, giving users the illusion that they have the CPU to themselves, which is essential for time-sharing.
Question 14 of 50
In Multilevel Feedback Queue scheduling, a process can:
Not quite. Try another option.
Answer: Move between queues
Unlike standard Multilevel Queue scheduling, Multilevel Feedback Queue scheduling allows processes to move between queues based on their CPU burst behavior.
Question 15 of 50
If a process is I/O bound, in a Multilevel Feedback Queue, it should ideally be placed in:
Not quite. Try another option.
Answer: A higher priority queue with a short time quantum
I/O bound processes use the CPU briefly before waiting for I/O. Keeping them in high priority ensures quick initiation of I/O, improving device utilization.
Question 16 of 50
What is 'Process Affinity' (or Processor Affinity) in multiprocessor scheduling?
Not quite. Try another option.
Answer: A process prefers to run on the same processor it ran on previously
Processor affinity avoids the overhead of invalidating and repopulating caches by trying to keep a process on the same CPU.
Question 17 of 50
Which of the following is NOT a characteristic of a Hard Real-Time System?
Not quite. Try another option.
Answer: Deadlines are optional if system is busy
In Hard Real-Time systems, missing a deadline results in fundamental failure; deadlines are strictly mandatory.
Question 18 of 50
Rate Monotonic Scheduling assigns priorities to tasks based on their:
Not quite. Try another option.
Answer: Period (frequency)
Rate Monotonic Scheduling uses static priorities where tasks with shorter periods (higher frequency) get higher priorities.
Question 19 of 50
Earliest Deadline First (EDF) scheduling assigns priorities:
Not quite. Try another option.
Answer: Dynamically based on closeness to deadline
EDF is a dynamic priority algorithm where the task with the closest deadline is assigned the highest priority.
Question 20 of 50
In Thread Scheduling, the distinction between PCS (Process-Contention Scope) and SCS (System-Contention Scope) relies on:
Not quite. Try another option.
Answer: The level at which threads compete for CPU time
PCS implies competition among threads of the same process (many-to-one or many-to-many), while SCS implies competition among all threads in the system (one-to-one).
Question 21 of 50
The formula for calculating Waiting Time for a specific process is:
Not quite. Try another option.
Answer: Turnaround Time - Burst Time
Waiting time is the total time a process spends waiting. Since Turnaround is (Waiting + Burst), Waiting = Turnaround - Burst.
Question 22 of 50
Which scheduling algorithm is most difficult to implement because it requires predicting the future?
Not quite. Try another option.
Answer: SJF
SJF requires knowledge of the length of the next CPU burst, which is generally unknown and must be estimated.
Question 23 of 50
In asymmetric multiprocessing:
Not quite. Try another option.
Answer: One processor (master) controls the system, others look to it or have predefined tasks
Asymmetric multiprocessing follows a master-slave relationship where the master server handles data structures and scheduling.
Question 24 of 50
Load balancing in multiprocessor systems involves:
Not quite. Try another option.
Answer: Push migration and Pull migration
Load balancing attempts to keep the workload evenly distributed. Push migration moves tasks from overloaded CPUs, and Pull migration takes tasks when a CPU is idle.
Question 25 of 50
Which of the following is a criterion for 'Response Time'?
Not quite. Try another option.
Answer: Time from submission to first response produced
In interactive systems, response time (time from request submission until the first response starts) is more critical than total turnaround time.
Question 26 of 50
Under preemptive scheduling, when can the CPU be taken away from a process?
Not quite. Try another option.
Answer: When an interrupt occurs or a higher priority process arrives
Preemptive scheduling allows the OS to interrupt a currently running process to allocate the CPU to another process.
Question 27 of 50
What determines the efficiency of the Round Robin algorithm?
Not quite. Try another option.
Answer: The size of the time quantum
If the quantum is too small, context switching overhead is high. If too large, it acts like FCFS. The quantum size is the critical tuning parameter.
Question 28 of 50
In the context of scheduling, what is 'Little's Law' used for?
Not quite. Try another option.
Answer: Determining average queue length based on arrival rate and average wait time
Little's Law (N = lambda * W) relates the number of processes in the queue, arrival rate, and waiting time.
Question 29 of 50
Which method is commonly used to predict the next CPU burst duration for SJF?
Not quite. Try another option.
Answer: Exponential averaging of previous bursts
Exponential averaging weighs recent history more heavily to predict the next value based on past behavior.
Question 30 of 50
What is 'Soft Affinity'?
Not quite. Try another option.
Answer: The OS attempts to keep the process on the same processor but doesn't guarantee it
Soft affinity is a best-effort approach to keep a process on a specific CPU, usually to utilize cache, but migration is possible if necessary.
Question 31 of 50
A system where the ready queue is partitioned into separate queues (e.g., foreground and background) with different scheduling algorithms is called:
Not quite. Try another option.
Answer: Multilevel Queue Scheduling
Multilevel Queue scheduling partitions the ready queue, and processes are permanently assigned to one queue based on properties like memory size or process type.
Question 32 of 50
Which priority applies in Windows scheduling when a thread is running in the kernel?
Not quite. Try another option.
Answer: Variable priority
Windows uses a priority-based preemptive scheduling system; general threads usually fall into the variable class where priority can be boosted.
Question 33 of 50
Pthread scheduling API allows specifying the scope of contention. What does PTHREAD_SCOPE_SYSTEM mean?
Not quite. Try another option.
Answer: The thread competes with all threads in the system for CPU
PTHREAD_SCOPE_SYSTEM maps the user thread directly to a kernel thread (one-to-one), competing for CPU time with all other processes.
Question 34 of 50
In a real-time system, 'Interrupt Latency' refers to:
Not quite. Try another option.
Answer: Time from interrupt arrival to the start of the execution of the ISR
Interrupt latency is the period of time from the arrival of an interrupt at the CPU to the start of the routine that services the interrupt.
Question 35 of 50
Which scheduling algorithm ensures that no process waits more than (n-1) x q time units, where n is the number of processes and q is the time quantum?
Not quite. Try another option.
Answer: Round Robin
In Round Robin, every process gets 1/n of the CPU time in chunks of at most q time units at once.
Question 36 of 50
Cooperative scheduling is another name for:
Not quite. Try another option.
Answer: Non-preemptive scheduling
In cooperative (non-preemptive) scheduling, the process cooperates by voluntarily yielding control of the CPU.
Question 37 of 50
Typically, a long-term scheduler executes:
Not quite. Try another option.
Answer: Much less frequently than the short-term scheduler
The long-term scheduler controls the degree of multiprogramming and runs infrequently (seconds or minutes) compared to the short-term scheduler (milliseconds).
Question 38 of 50
Which of the following is true about 'Admission Control' in Real-Time Scheduling?
Not quite. Try another option.
Answer: It admits a process only if the system can guarantee its deadline
Admission control prevents the system from being overloaded by rejecting tasks that cannot be completed within their deadlines.
Question 39 of 50
In calculating average waiting time, what is the arrival time usually assumed to be if not specified?
Not quite. Try another option.
Answer: 0
In standard textbook problems, unless specified otherwise, processes are often assumed to arrive at time t=0.
Question 40 of 50
What is the main disadvantage of Multilevel Feedback Queue scheduling?
Not quite. Try another option.
Answer: It is the most complex to implement and tune
It requires defining the number of queues, scheduling algorithms for each, methods for upgrading/demoting processes, and quantum sizes, making it complex.
Question 41 of 50
What happens to the 'Context Switch' time?
Not quite. Try another option.
Answer: It is pure overhead
The system does no useful work while switching contexts; it simply saves and restores state.
Question 42 of 50
Conflict phase of dispatch latency typically involves:
Not quite. Try another option.
Answer: Preemption of any process running in the kernel and release by low-priority process of resources
Before a high-priority real-time task can run, the kernel must resolve conflicts by preempting current kernel activities and releasing low-priority locks.
Question 43 of 50
Which scheduling algorithm suffers from the problem of indefinite blocking?
Not quite. Try another option.
Answer: Priority Scheduling
A low priority process might never get the CPU if high priority processes keep arriving (starvation).
Question 44 of 50
In SMP (Symmetric Multiprocessing), where can a process run?
Not quite. Try another option.
Answer: On any available processor
In SMP, all processors are peers, and a process (or thread) can generally run on any available CPU.
Question 45 of 50
What is the 'Throughput' if 10 processes finish in 5 seconds?
Not quite. Try another option.
Answer: 2 processes/second
Throughput = Total processes / Total time = 10 / 5 = 2.
Question 46 of 50
Typically, 'Foreground' processes in a Multilevel Queue system use which algorithm?
Not quite. Try another option.
Answer: Round Robin
Foreground processes are interactive, so they require low response time, which Round Robin provides.
Question 47 of 50
Typically, 'Background' processes in a Multilevel Queue system use which algorithm?
Not quite. Try another option.
Answer: FCFS
Background processes (batch jobs) do not require user interaction, so FCFS is often used for its simplicity and low overhead.
Question 48 of 50
Which type of thread scheduling allows the user-level thread library to schedule threads?
Not quite. Try another option.
Answer: Process-Contention Scope (PCS)
In PCS, the thread library schedules user-level threads onto available LWPs (Lightweight Processes).
Question 49 of 50
If a process has a CPU burst of 10ms and the time quantum is 20ms, what happens?
Not quite. Try another option.
Answer: The process runs for 10ms, terminates/yields, and the context switches
A process voluntarily releases the CPU if its burst is less than the quantum; it doesn't hold it for the full quantum.
Question 50 of 50
Which concept describes the cycle of CPU execution and I/O wait?
Not quite. Try another option.
Answer: CPU-I/O Burst Cycle
Process execution consists of a cycle of CPU execution (CPU burst) and I/O wait (I/O burst).
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of CSE316 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of CSE316 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.