Professional Documents
Culture Documents
OS Ass1
OS Ass1
OS Ass1
AssiGNMENT-1
Dieence betwen thread scheduling aud
CPU scheduling.
scope
Ler space oA Kenel spaee only
hernel spate
Opkimite CPU
Dptimie
execukon utiliation , acroSs
procese.
proess
Decison Thread ibrasy Oyeabing sy
maler scheduler Kernel
Maniníe Minimt
|Thoug put
|Rerponse tiaa,
a cPu uhilization:
Jhe amount. ime proteas
eneuted
yeal tme oS’40-4D.
e Bust ine:
Jhe amount e time lick Spend for te
eXeution.
prodáed.
pictori al epreeutabion te
rous neutipn)
Döpat:
giu te cautol to tle
A module that 8va
bo tue proes seleled by te shot
ternu scheduler
’ whern Suitcing
it stasts e pld unnig proes statu
in te form o; rogises 'ond assigns
assighs te
CPU to a ne ho enecule
eMeeue it
þrotess.
tau.su axeution old
startt t that pont where anote
pros stopped it.
Tfreukg Dnirupt
Call
idle
Sove stat. inko PcB:
sall
idle
Reload stat krom PeBo
Seukon
irst Context
suteliug ned to save tl
Tye: Preamylve
Non- Preenptve
Fist
Fut -Comme Serve (FEs)
* Shotat Job fist (sTE)
shailet Renaauing T it sRTF).
Piorthy
* Kound, Robn
Anval Ti)
.FCFS wthout
Protess Bust Time
24 msec
P2 3 mec
P3 3mec
GjonH Clat:
P
Pa
24 24 30
Dutut
Rroets Bust, Tine Conpletion, urnaroud Warting
Tine
24 24 24
24 24 24
30 24
ú1 TAT WT t BT
S1nms
3
haage line
b424t24 ,5):
3 3
FeFs w Afoival ime)
ProiesAthival
Po 2
TimeBT
3
5
Py 2
Gant Chaut:
Po P
2 5 15 20
Output:
Roies Aral T.|Bnt, irnCTTAT'
TATwT
5 3
Po
0
15 5
6
5 20 12
Py 2
33
5
Tine 0t[45+0
Watkng 5
13
5
SJF Wrlout Ahrivl Timu)
Pioces Bust Time
Pu 2
Ps
BRPy P' P
2 15 23
TA T WT
Potens BT
P 3
Py 2 3
3
8
23
ioge 5
54ms
STF wit. Aouval Tine)
Procas BTAT
4 Keody Sueue
5
P P P R,
12
i) WT=(TAT- BT
Proces AT BT TAT
P 2 12, |0.
4
5 4
&m'
Ghantt Choat:
Ps P P Pu
l9
P 3
P
P3 2
19 |8
5
Tunaoud Time: to
12 ms
PRonhy (wil kaialhine)
RoLus B1 Pioh AT
2.
P
2
1
Py 3 Keay Queve
antt Clat:
Pi Py
6 Lo 1
13
Dutput: TCT
Proceys BT Pror hy AT TAT Wt
P 2
2 ||
2
3 3 5 5 13
tit) wT TAT-BT
32
SRTF Shon leat Remating Tínne .Fist)
Vroess BT
P
21
Ready Queie
Py
Gant Chat:
Pyl P
2 3 4 14
W1TAT-CT- AT
= 26 :6Sms .
4
Round Robin (rR)
Poes BT AT TO:3ms
24
3 2 Reacy Quee
Gant Chant:
Pi
3 12 1s 19 '21 y'2 30
Oubyut: TAT
ProLes BT
30 30
P 24
5 2
1
3
P
(ii) WT TAT-BT