Assume that the following jobs are to be executed on a single processor…

2021

Assume that the following jobs are to be executed on a single processor system. All jobs have arrived at 0 msec.

image.png

If the system uses Shortest Job First (SJF) scheduling, then calculate the average waiting time of the jobs.

  1. A.

    4

  2. B.

    2.75

  3. C.

    7

  4. D.

    11

Attempted by 198 students.

Show answer & explanation

Correct answer: B

Using Shortest Job First (SJF) scheduling, processes are executed in increasing order of burst time.

Burst times:
b = 1, d = 2, a = 4, c = 7

Execution order:
b → d → a → c

Waiting times:
• b = 0
• d = 1
• a = 1 + 2 = 3
• c = 1 + 2 + 4 = 7

Average waiting time: 7+3+1+0 /4 = 2.75 ms

So, the average waiting time is 2.75 ms.

Explore the full course: Up Lt Grade Assistant Teacher 2025