We read your photo as:
Calculate the waiting times and average waiting time for processes P1, P2, and P3 with burst times 4, 13, and 12 respectively, using the FCFS scheduling algorithm.
ScanSolve AI Answer
Answer
Step-by-step solution
4 stepsHere's the calculation for the waiting times and average waiting time using the First Come First Served (FCFS) scheduling algorithm.
The waiting time for a process in FCFS (assuming all processes arrive at time 0) can be calculated as the sum of the burst times of all processes that arrived before it. The formula provided in your notes, , is equivalent to this, as it simplifies to the sum of burst times of all previous processes.
Given Burst Times:
- P1: 4
- P2: 13
- P3: 12
Calculate the waiting time for P1.
P1 is the first process, so it starts immediately.
Using the formula from your notes:
Calculate the waiting time for P2.
P2 waits for P1 to complete.
Using the formula from your notes:
Your calculation for P2 had a small error where you subtracted 4 instead of 13.
Calculate the waiting time for P3.
P3 waits for P1 and P2 to complete.
Using the formula from your notes:
Calculate the average waiting time.
The average waiting time is the sum of all waiting times divided by the number of processes.
Try one yourself
A new problem that tests the same skill.
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
More Computer Science Questions

Handwritten Step-by-Step Solution
Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.
Try on WhatsApp