Professional Documents
Culture Documents
OS Organizer 5thsem
OS Organizer 5thsem
iedlseuning saphore
, 20007
ce INSUT z012IC9), 2013 24
reefing FALSE 0
(fine TRUE. .
(Hitine N. 2 /*No.of processes */
fact, whose tum iit 7
inners (NJ: al values intially 0
ve cter-epon (int proces) / "Process sort 8
Tit other, = No. ofthe other process #/
‘ir 1 process the opposite of process
interested process] = TRUE;
tun= proces” Set ag */
Mie (urn = = process imersted [ther
Josten rion (int proces) proces whos ang 7
ToSlenS pce] FALSE; nde Sputum ical eon
deo ming the shred variables before energie
Eesson wih sown process mur O or atte unter TS
See ti ioe tener. Aer ts ied ih
etc als cavern to ndcat that is mead aw he
tsetse des.
{csechow is votin works. Italy nether rcs isi
rvs Ocal cron nde meres eting
neo. Since procs not iteested, "eerie
Towels ever reion, l ang tee wl interested (] gs
tha only haprens when process O calls leave epon 1 eX th
amide the cs oth proceses cal ete egion aka
Src nunter num. Whihves oe i ove ai
‘ets lst. Suppor that pce 1 stores as so tar Whe
ie “while sutement process 0 excetes eo tes at
Pcs Tops and docs not ener ral regan 2
2. What i rial asction problem? What are the
atcuion tone ect acton robin
What i erteal section problem? What
‘oblem mnt eaiaty?
on.proces Penang In 1 eral Seton, th no
inti secon. a
sexcting ims eral section and thr exist sone
fo ener eta setion thn the sleton 0
lon a semaphore? {WUT 2013(C), 201717), 24¢¢rn
ith thove operations Hf thse Yoiow toe eae
[Wout 2013¢9), 20m
ramet tothe shove problem? [wBUT 2013158) 271TH
operations i tt requires busy ating which wases CPU
mi beable tre rosactvey
moist. Monies have propery for achieving tal
fanbeacive la mono a ay str, Corsequel
this yacrotation conn xpi.
(eur 20144, 201807,
non-negative integer values an exer
i ny rch ew none
sein me
of beans
we tug :ar (0
‘1
iS rats
a
se
tr TRUE
(Boer /Janduam= do noo
fig: FALSE:
Sar )=FALse
‘hg = FALSE
4. ste producerconsumer problem. Give 2 soution te
Foti Ging semaphore sual your sohtonguaraneee
Given set of cooperating processes, some of which “produce” daa
teins by ators (cosumers, with possible GREYweur zorresy
Sa) of Short Answer Type Questions.
snuliple rogram threads to share the sine
sam Sy sh mack
yen fit rsd th rs mat
while itis using the resource. The oer a
rte vt sshd
the Readers. Writers Problem with the use ot
‘ TDwBUT 201048), 2019(68
‘Writers problem can be solved in te
Pesomteten)
senResies
ee ieders =O (Sem f
es _Penfexdes)
swe [7:1
deine
Pisenviries)
see the atabse
VisenWetes)
ry
ie slain gives readers profrece over writs once one
Cen A veto ae slowed oral the database with
‘enon Semis
st watis Sounder Buffer Problem? Explain withthe sokation,
seo ur pote, which sao cll profucr Consumer problem 1
Do nd cock lt i capable of sing a wt of da The
ao in. maly poser and consume whch a perio he bal
=
‘1 rnucr ed to insert data nto an empty bull A consumes is
{hse stn tn bute. Those wo processes wold not prod
{vee ence concuremly. There neds make then Indepett
‘hu iste slaion
Sot
Onesltion of this roblem isto use semaphore.
‘Abiaay semaphore which s sed toate nd ene
Erp, counting semaphore wher nia vale isthe
‘ule snce niall al slots re empty. 5
Full «counting semaphore where nil value is
Taluc of empty represents the number ofSere of prec cnt ine
Fc dns By ding rns cn
fares orem seoc mao eS
ise pmnssacen at 4 ort
epee te een sit wars
fete fom gee a eS
este led css we 2 re od
a
Spee)
err
feat hae Eee pancosstav eco
eer onl mtr bs pms! SS
ey
fr Oring Plonophers' problem’?
(wsur 294m
WOUT 2041, 2015(C5) 201807
tht requires busy wating. While «process
tat res Yo eur eral sin tt Ip
etal loping is clears + probs in el
ste CPU i stared amons may peosesscs Bt
‘abe is no posive. it must wa
the process can block is The ck
miei plonphers rola? Onan aaron a
Sapeemasnor om
‘onus doing plosophe protlam whe slaon, BUT
sae oe science, he dining pilesopber problem i a
come Seu pobict. 1 surumeized w te Plane ag
oA er spahel nthe come At i lal ee
See
ee os ee ces oo
SS
At Uistdeod $195
fecnsis (PoLioasste! (0), Hhsloaopber (2, PAOWERBGE
Srilonopher GD) Philoeepbee
,
si smaptoe tern enna ads
Aner:
‘tart: Refer to Question No, S(a) of Short Answer T)
rarea
« sa nt
imager vate tts alized 0 aval fe! feeama
en ny ae es han K- Ding Sorte
omg li Pa dt Fetes
es
SR, ey
i
Pa wea)
Is conten? Wate semsphor? What i oun TRS
radvaniage of using 2 counting se nore than a Tink up, dats
(bien? How Wcan be sored a eure,
‘aur ons ie
eaceave
Sep cad)
a Sof Shor Answer Type Questions ane
ae mar» pt oe
sya pis rr caniy |S i et ee
eememmcntpechettccd | Paha stan aiunh os area,
Sacro ita
rie see ieee
See
Biren catcaninaras | xmas mice
—— eo a a
Sectemntntrtemsy rite | serena wars cneonons enema
arr
ites probiem, which modes accesstoa |The lowing code eis sgnal handler with maki signal
seraton sytem, with many compeing | slbcevers occurs and oles sated mes before eng.
a have mulipe processes ade | te “Signa he
is updang (orig) the daatse. Nt due You might also like