operating-systems scheduling

Definition

Scheduling Metrics

Scheduling metrics are quantitative measures used to evaluate and compare the performance of different scheduling strategies.

Key Metrics

Turnaround Time ()

The total time a process spends in the system, from the moment of arrival to the moment of completion.

Wait Time ()

The total time a process spends in the Ready Queue waiting for the CPU.

Service Time ()

The actual amount of time the process is in the Running state executing on the processor.

Normalised Turnaround Time

The ratio of turnaround time to service time.

Significance: Indicates the relative delay experienced by a process. A value of 1.0 is the ideal minimum (no waiting). Higher values indicate more significant relative delays. It is particularly useful for comparing how fairly processes of different lengths are treated.

Response Ratio ()

Used specifically in the HRRN strategy to balance short processes and long-waiting ones.

Mechanism: As wait time increases, the ratio grows, eventually allowing even long processes to out-compete new short ones, thereby preventing starvation.