Step 1: Choose the appropriate scheduling policy.
When the CPU burst times of processes are known beforehand, the
Shortest Job First (SJF) scheduling algorithm gives the minimum
average waiting time.
Step 2: Arrange processes by increasing burst time.
The given CPU burst times, arranged in ascending order, are:
10 ms, 16 ms, 20 ms
Step 3: Compute individual waiting times.
• Process with 10 ms burst time: waiting time = 0 ms
• Process with 16 ms burst time: waiting time = 10 ms
• Process with 20 ms burst time: waiting time = 10 + 16 = 26 ms
Step 4: Calculate the average waiting time.
Average waiting time = (0 + 10 + 26) / 3 = 36 / 3 = 12 ms
Final Answer:
12