SJF Non-preemtive Dan Preemtive

2
a. SJF Non-preemtive Proses Arrival Time Burst Time P1 0 4 P2 0 5 P3 5 3 P4 8 5 P5 10 3 P6 12 4 P7 15 1 Waiting Time P1 = 0 P2 = 4 P3 = 9-5 = 4 P4 = 20-8 = 12 P5 = 12-10 = 2 P6 = 16-12 = 4 P7 = 1 Total = 27 Average = 27/7 = 3,857 b. SJF Preemtive Proses Arrival Time Burst Time P1 0 4 P2 0 5 P3 5 3 P4 8 5 P5 10 3 P6 12 4 P7 15 1

description

Sistem Operasi Penjadwalan

Transcript of SJF Non-preemtive Dan Preemtive

TUGAS MATA KULIAH SISTEM OPERASI

a. SJF Non-preemtiveProsesArrival TimeBurst Time

P104

P205

P353

P485

P5103

P6124

P7151

Waiting Time

P1 = 0

P2 = 4

P3 = 9-5 = 4

P4 = 20-8 = 12

P5 = 12-10 = 2

P6 = 16-12 = 4

P7 = 1

Total = 27

Average = 27/7 = 3,857

b. SJF PreemtiveProsesArrival TimeBurst Time

P104

P205

P353

P485

P5103

P6124

P7151

Waiting Time

P1 = 0

P2 = 4

P3 = 0

P4 = 20-8 = 12

P5 = 12-10 = 2

P6 = 16-12 = 4

P7 = 0

Total = 26

Average = 26/7 = 3,715