Unformatted text preview: CPU, it keeps it unless it makes a request that forces it to wait, such as a request for a device in use by another process. Suppose processes p1 through p5 arrive in the ready state at essentially the same time (to make our calculations simple) but in the following order and with the specified service time: In the FCFS scheduling approach, each process receives access to the CPU in turn. For simplicity, we assume here that processes don’t cause themselves to wait. The following Gantt chart shows the order and time of process completion: Since we are assuming the processes all arrived at the same time, the turnaround time for each process is the same as its completion time. The average turnaround time is (140 + 215 + 535 + 815 + 940) / 5 or 529. Process p1 p2 p3 p4 p5 Service time 140 75 320 280 125...
View Full Document
- Fall '10
- Computer multitasking, AirTrain Newark, turnaround time