Professional Documents
Culture Documents
Adobe Scan 07 Nov 2022
Adobe Scan 07 Nov 2022
Resh Rana
Rollno.-
Sechon -
Cniv. Rollno.-2o18620
ak amposdant fon schedule to distnguish jo
bound. OamaOm CPU bound pHoHom
bound m0hi
CPO
his
procens is a proces thaB spends
sme exeoutin9 uLtlens
bound. PHÖLS ene whick spends most
his me waiing be oPexoa th: to
mpotan o a schudulbx to distngush
ailows exeus
ht Schedut eniy.
L is then CPU is
undDut
POceses that aHe I0 bound
On ihe ontasuj. he schtdulest em exe
oe CP- bound th a cro wub
high za oen
that usowC may be und
a.chucved, but obi0t byslm
CPO bound.& 4o bouñd proc e
goodbolont o po3Sible.
overal ystom bu
eps ke
$2 a) CPU utilitatien and
wehad
Reponbe m h e asociaitd
I0 dvice uilizatienn
and CPU utilafien suinin
c) maimizco.
b
CPU utibzation mirni ocos oithout pepming
CPo bound tasKS by
Jong unning
maimésed
a
1/0 device utbizaion
switching
.
Contert to Smu.
betome uadj
bound jobs a Scon a
theg
T0 ovehcacds of context ^wituhts.
the
hencby incuvoung
3 I a non ncemplive algo a good. cholca for inkocve m
No, mtoiactiveSwm we pieemptve scheduung
ihe
Judianto aos espone o nCu uets.
oal to sewice tkivial, I/0 boundirteacdive
SIequcsts immediatey ad uick n avou
i4
9 )On a he
sstem usin muls avel jkecdback quuDs. uhat
advantag uing dievet Bm unzbum in ead uL
Pnocewe
moie
which need 1 euen seVUan
nteractve piocees Auch as cditw,con b
tand bmall time uantwrm. oces
L a ptue with a
euiring u0
Lagt uorun
ueue h a
CortextSuwHches To Complute he procenin
ue cempte.
making moe iciet
aminat?
n a systom . totaly CPU bound
U
BT 100 ETtot Lev
10
doal 2 Lew z
TO
Lewel
) On a
ystcin a T 75 .eacv timi endrcner b*
Lve
LCvel
Ti-E S s -itvei
12 er:a i.cwel 5
b) Tima Guanbum b 10 ma
A CPU bound pocU can e
tull 0 m* timt slot. whuvas
an I/0 bound piocts Con have t eniy fer ms
bcoZ
anoth 1/0 bound în
cPu boundpics n0tch tine
il. So a
quiut wi 6ve
4would. ke0s0 1jo bound
pHOcees zak
101 * 10ms.So.CPU would
be ubüzcd jov a otal e
Totalm 10° -t +
20 ms out o21-1 ms
10«l
CPU
2-1 ms
=
udiizalion X100 =
357.
7O
he omd ?
7Con jo CPD fndenswe phohe
switchts
be. 3 mlet
Theke wll
Pho as AT CPU IO
PI
28 A4
P2
P3 12
2
PLP2
4
Pa PaZ
12 8 20 26 78
P3 8
PL
9 sing $IF
algo and xponertia avewaing
t ti h
valut
0:1.
0 - 1 , *l= la0 20
S,9.3,5 T 20 t1 in STF= 3,5,S,9
0 1 3 + (1-0-7) 20 21t6 = 8.1
T3 0-1*5 t (1-0-7) 20
3-5 t 6 is
T4 20
0-1x5
3-5 t6
(1-0-1)
9S
TS 0-1*9 + (l-0.7) 20
6:3+ 6 12-3
Tt means that a
4 thon il should not Mop
ng +he oútical cction ,
Full&emp
For Puoducax
wait ( Cmpt)
wail (vmut):
siqnal(mulex);
sigmlos
3 while (tru) oj enp
When phoducex phoducis
an
ttom them -he valunt mou.
tilud
becoz one slot wil be
Hccuced Heducad phevent onunm
The volue emuitX ( a0 öm å thus 1he
phoducer
had plactcl
to aces bule. Now inCe
all ascd
is b.
Vaiue
o
12 What s oitical Seckiom ? Condison to *ind vitcal secho
whene shaied
Oiticat beetion a code se?ment
Hn atomic action s uired
YaY Con be accoyea exeuu an
in a Ciical bection *e Only eme ioco
C i t i c a t e c t i o n at a dimi Pocones
RL othusccions.
in executt
citical
in u i r
have to wait to
ciftical secteni
Condilion
to solve implres hat only ona Phoces cn
Muhial
be
excdusem- It
inside Re Cüical seciorn ar anumc
not
mcans Hhat a c i a phoc
4oge%- t thon it should not stop
UAT he section.
Cibical
Soluuben s poblum *
hio phoblm we ncaa "tavo counnn Semaphore
10 Sove
Ful& Emply
FoT o da
wait Ccmpt)
a i t (mutcx) ;
siqmalCmu )
3 whik (rue)
am og enpP
item them he val
When pModuce pkoduacib
Suedauced b sot wi be L d nouw.
becoz one HeducLd tonuntse
a%0 to Pevênt
The value muX & thus Ihe
has plactcd m
cce bulin. Now pHoducex
I.
Vaiue o kall" is învie ascd by