Which of the following statement(s) is/are correct in the context of scheduling?
View worked solution
Answer: A;C;D
Let us analyze each statement individually to determine its correctness:
-
Statement A: Turnaround time includes waiting time
Correct. Turnaround Time () is the total time spent by a process in the system from its arrival to its completion. It is calculated as: Alternatively, it can be expressed as: Hence, turnaround time directly includes waiting time. -
Statement B: The goal is to only maximize utilization and minimize throughput
Incorrect. The objective of efficient CPU scheduling is to maximize both CPU utilization and throughput (the number of processes completed per unit of time), while minimizing turnaround time, waiting time, and response time. -
Statement C: Round-robin policy can be used even when the time required by each of the processes is not known apriori
Correct. Round-Robin (RR) scheduling allocates the CPU to processes in a cyclic order for a fixed time quantum. It does not require any prior knowledge of the processes' CPU burst times, unlike algorithms like Shortest Job First (SJF) or Shortest Remaining Time First (SRTF). -
Statement D: Implementing preemptive scheduling needs hardware support
Correct. Preemptive scheduling requires a mechanism to interrupt a currently running process after a certain interval (e.g., when its time quantum expires). This is implemented using a hardware timer interrupt that periodically transfers control back to the operating system's scheduler. Without this hardware support, a process could run indefinitely unless it voluntarily yields the CPU.
Free practice · Your answers on this page are not saved.
