Name: Atif Iqbal Roll Num: 192 Section: BSSE 4 A Subject: Operating System Assignment No2 Submitted To: MR Hassan

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name : Atif Iqbal

Roll Num: 192


Section: BSSE 4th A
Subject: Operating System
Assignment no2
Submitted to : Mr Hassan

Department of Computer Science , Lahore


Garrisson University.
Gantt Chart :

P2 P5 P1 P4 P3 P5 P1 P1 P1

0 1 4 7 8 10 12 15 18 19

Throughput:
Number of processes/Total time taken by processes

Throughput= 5/19

Throughput=0.26

Turnaround Time:
P1=19

P2=1

P3=10

P4=8

P5=12

Average Turnaround Time:


Average=19+1+10+8+12/5

=50/5

=10

Waiting Time:
P1= 9

P2=0

P3=8

P4=7

P5=7

Average Waiting Time:


Average=9+0+8+7+7/5

=31/5

=6.2

You might also like