Pular para o conteúdo

Labs · 9618 A2 16.1

CPU Scheduler

Be the operating system. Choose which process gets the CPU at each moment, and watch the Gantt chart and the waiting times change.

7 levelsFree bench

In the exam

Exam questions on what this lab teaches, with the points that gain marks.

9618/32 October/November 2022 · Question 9(a)3 marks

Explain why an operating system needs to schedule processes.

Points that gain marks

  1. So that several programs seem to run at the same time (multitasking).
  2. So that high-priority jobs are completed first.
  3. To keep the CPU busy all the time, so all processes run efficiently.
  4. To reduce waiting times and give every process fair use of the CPU, so no process waits for ever (starvation).

In this lab: The race table in free mode compares the average waiting time of each algorithm on the same processes.

The question as printed in the exam paper

More real experiments

All labs →

Entrar ou criar conta

IGCSE, A-Level & AP