The following are the CPU and I/O behavior of three processes, timings in seconds.
Process P1 has 1 second CPU burst followed by 3s I/O followed by 1s CPU burst
Process P2 has 2 second CPU burst followed by 2s I/O followed by 2s CPU burst
Process P2 has 4 second CPU burst followed by 1s I/O followed by 4s CPU burst
Please provide approximate sketches of Gantt charts, and average turnaround times for the following scheduling algorithms:
Round Robin with a smallish time quanta (below 0.1s)

Respuesta :

Answer:

Explanation:

From the given information:

The  CPU and I/O behavior of three process timings in seconds are as shown in the image below. Not only that, the Gantt Charts and the Average Turnaround time for the scheduling algorithms were also calculated.

NOTE:

AT = arrival time

BT = Brief-time

TAT = turn around time

Turnaround Time TAT = CT - BT

Waiting Time = TAT - BT

Average TAT = 32.7/3

= 10.9 sec

Average TAT = 10.9 sec

From the attached images below showing the process and charts; we can conclude that it implies that P1, P2, P3 are scheduling in these sequences from time to time period.

Ver imagen ajeigbeibraheem
Ver imagen ajeigbeibraheem