Workload Assumptions and Scheduling Metrics
In this lesson, you will be introduced to workload assumptions and scheduling metrics for processes.
We'll cover the following
Workload assumptions
Before getting into the range of possible policies, let us first make a number of simplifying assumptions about the processes running in the system, sometimes collectively called the workload. Determining the workload is a critical part of building policies, and the more you know about workload, the more fine-tuned your policy can be.
The workload assumptions we make here are mostly unrealistic, but that is alright (for now) because we will relax them as we go, and eventually develop what we will refer to as … (dramatic pause) …
We will make the following assumptions about the processes, sometimes called jobs, that are running in the system:
- Each job runs for the same amount of time.
- All the jobs arrive at the same time.
- Once started, each job runs to completion.
- All jobs only use the CPU (i.e., they perform no I/O).
- The run-time of each job is known.
We said many of these assumptions were unrealistic, but just as some animals are more equal than others in
Scheduling metrics
Beyond making workload assumptions, we also need one more thing to enable us to compare different scheduling policies: a scheduling metric. A metric is just something that we use to measure something, and there are a number of different metrics that make sense in scheduling.
For now, however, let us also simplify our life by simply having a single metric: turnaround time. The turnaround time of a job is defined as the time at which the job completes minus the time at which the job arrived in the system. More formally, the turnaround time is:
Because we have assumed that all jobs arrive at the same time, for now, and hence = . This fact will change as we relax the aforementioned assumptions.
You should note that turnaround time is a performance metric, which will be our primary focus in this chapter. Another metric of interest is fairness, as measured (for example) by
Get hands-on with 1400+ tech skills courses.