To Handle A Page Fault In: XS Marks)
To Handle A Page Fault In: XS Marks)
( 4 x S = 20 Marks)
II What are the steps required to handle a page fault in s L2 4
demand paging?
(or)
!Sb Explain the physical and logical structure of a disk, 10 L4 4
including the layout of tracks, sectors, and blocks.
Describe the concept of disk formatting, including Jo,v-
level formatting and high-level formatting. Discuss the
role of the file allocation table (FAT) or inode table in
managing disk storage. Finally, illustrate the steps
involved in reading and writing data to a disk, including
seek time, rotational delay, and data transfer time.
--,-
..::..,.............
-: ___ -- , ..__
_.,..
----------
~
-
- - - - 7 :--
- .... _~
,~
I d l"l - ~
I Su E ithe r OR C hoice Q uestio ns
(-, V .
A corn putcr h~ <- 'l r_ , "~ 10 == 20 Marks
.., .;, J ararncs (ph ysical memory pages) and \ 3
uses the fo llowi ng sequence of page requests: LA \ 4
J, 2, 3, 4 , 2~ I, 5, 3, 4, 2 \
Using the foll owing algorithms, determine the page faults \
for each algorithm:
[Link]-In-First-Out(FIFO) \ \ \
I
\
'
[Link] Recently Used (LRU
3. Ontimal Al2orithm
15b ~xplai_n the physical and logical ~~ of a disk, \ 10 \ lA
1nc]ud1ng the layout of tracks, sectors, and blocks.
Describe the concept of disk formatting, including \ow-
leve] fonnatting and high-level formatting. Discuss the
role of the file allocation table (FAT) or inode table in
managing disk storage. Finally, illustrate the steps
involved in reading and writing data to a di~k, including
seek time. rotational delay, and data ~fer time.
. • ___, .,,. Tht"PAtA to
--=- -~ - - -- - - - - - - -- - -- -- - -- -- -
Part-B
4 x 5 = 20 Marks
1~
-
~
i
" !
1
-
• I • •
. : : ~ ~s:c
-
. I
m c-••c::
i: a
f \0 I
:
.. I •
a;-
i
• !
'
,. !
•
J
-
•
•
v iv o Tb< ·~
Apoorva O ct
,;202,4, W 32
80.r-.;,
Tu,,. I
Pl 2~=1 0
T1"""-'
4 -
I
'
PJ 4 I 2 -
P3 6 2 3
P4 10 3 s -
PS 8
" l
P6 l 2(h1gn} s 4
P7 9 6 6
l)naw lhe Gann
the proc,cssc:s. Chan and Calwt..IC lhc ro\l.....,ng fo1 ~\\
i) Comptct,oo umc
Ii) Tum Around Tune
ii,) W111ung Time
I
,o,,
t6b
consider the following mapoho1 of a ,yo1cm·
6Jj9s,l\R!I
ARCO
p(\12
~ U-
Al" l1
no11
-1,lt
II ~CD
l'lQ
10 ) 3 I
n. 1nuo 175 n
I\ J\H ll5b
I': Oft ,1 n,n
r no 11 a~~"
r. rollowing (lllCSIIOM using 11M, b:inkcr's
IW"c:r !he
nJgorhhm:
u. Whal IS the contcnl or lhc 11\lllnX 'lccd7
b. Is 1hc system ,n A s.1rc <laic?
c. 1r, r,:quc:sl rrom proccn Pl :umcs for(0,4.2,0), can lhc
-uc:sl be -n1cd 1mmcd1A1d•'?
BL Cov1u1&• In ¥o
!or!
ISb Exp!Jun [Link] thrc.: methods of rommuruQtK'fl ,n C,rmt• 10 t4 l l
Server • )"'tern ,, tth the nci:e5SU)' d1aiznuns.
vivo T2x -
Apoorva Oct 1. 2024, 11:33
l'lln 8
14 • 5 • 10 t,brbl
II What nrc the suucs undcrpnc: b)' a procas [Link] • uaa ,
~ \u
2 2 \ 2h.l
~pens mon, 1111111 one IIJll'hcotion on O bptoi, •• the """-" I
t1me'l lllu11ibatc 1hc L\me using suitable di::t!VlfM.
.
12 lhplnl~ the role of scmiq,harc in chievulJ; n:wt\W
e,u,:lusion.
4
ul 2 2 u..21
s u
IJ
[Link]:nuc: t h e n ~ condiuons for • deadlock to occur. "1I 1.21
14 Cqn,id"': four proccsu. "'"h the length af CPU bw'il lime s u l 2 Ll.3
ond omval lime Cn:a,c [Link] chara ,llusuatang the
••••:.nlon or lh<:ilc pmcca.•cs usm; SR'f
Et!:11.:f:ll ArriYill Iimi: D11c;L Iim~
o.o
I
P, 7
P, 2.0 4
PJ 4.0 I
P, 5.0
"
--
IS• -... . _
._ ~_..,.,~,_.
handldl lhc removal or runn,na ~
fiom tho, CPU
the
Pan -C
! 2 X 10• 20
pn,o:oo
...... \"
Elt~,r OR Clloltt Qu,.don,
Marta)
• Qucudng dilllV"m.
vivo T2x @
Apoorva Octl , 2024, 11:32
PIO Priority Arrival Burst
Time Time
Pl 2(1ow) o 4
P2 4 1 2
P3 6 2 3
P4 10 3 5
PS 8 4 1
12(high) 5 4
P6
9 6 6
P7
Draw the Gantt Chart and Calculate the Hll
lowing r,
the processes,
i) Co1nplction tirnc
ii) Tun1 Aroun<l Tianc
iii) Waiting Time
I
I
Process Arri \'al Processing
Ti: ne T ime
I A I o I 3
B I 1 6
C .; 4
D 6 ,
I t"' In
a s~~cm "'i th t\\ O [Link] Pl and
f'C50crccs R l and R1, the followi ng
Pl and two
sitwrioo [Link]:
s
Pa rt- C
Eit bu OR Clao\ce Qu esd ou
lX \0• 10 ~ta ru
15a La us cocsidcr a ~en .mo in "'h ich a process \>\ U'\C
du ng ing d.:a:a m a P3-1icular memo S \
ry location. A\ \\\c
sam e tim e [Link] pro ces s P2 trie
s rea din g dat a fro m the
same mcmo:-y loc ation.
a. ~cntioo the rules to be followed for l'fc .
scr"'\ag
dara comisamc:y.
t,. E,q,lein the classical so lut i~ and syncbl - ~
'O"'
b pCSG"ing data COD51stcnc:Y·
. or· in C\\eri\-
•hi ,4s of a,m mu nic au on
a S:rr/~
wilh seven pcoc
.
.
~ d) Kernel
I 6 I \\'bat does the term .thr
j . terms'?
a) The amoun1 0 f .
oughput"-;;m;;:::--=.:-:----
ean in scheduling
I b) The number oftune the CPU is idle
1-,-...L
I c) The total . processes com let .
i d) Tb t t~me a process Spen_dp . ed per unit time
.e Ota) time taken fr s in the ~ystcrn
I com Ietion om process submission t
7 Ideotir., th o
') e deadlock handr
Banker's Algorithm mg technique in the
2
, a) Deadlock Prcven~on
b) Deadlock A voidan
c) Dead! ce
ock Detection and Recov
' d) Deadlock [Link] ery
8 \\'hat does interrupt la1cncy refer to
operating systems? m real-time
a) The time taken ti
execution. or a process to complete its
I
b) Tbe_tune
· . of an interrupt to the start
from the amval
oflhe mt~pt senice routine (LSR).
c) 1:"he nm_e from the completion of an interrupt
sen,ce r~ullne (JSR) to the start of the next interrupt.
d) The ~1me from_ the arrival of an intcrrupt to the
comoletton of the mtcrruot senice routine (ISR).
9 Deadlock detection algorithms differ from deadlock \
prevention algorithms in that they
----
a) Pre\1ent deadlocks from occurring in the first place.
b) A void deadlocks by pre-allocating resources.
c) Detect and recover from deadlocks after they
occur.
d) Use oriority schedulinl! to avoid resource conflicts.
JO \Vhich statement is true about the non-preemptive \
scheduling algorithm?
a) Resources are allocated to a process for a limited
time
b) Process can be interrupted in between
c)High Priority process frequently arrives in the ready
Queue
d)Process holds the resources till it completes ,ts
burst time or S\\~tches to \Vait state \
'ln1: •J1
- -33
(.'(J2 - 3
3
2
3
2 i •
COJ -3
2 J
3 3 2 l
CCJ4 3 3 3 2 I .J
cos 3 2 3 2 .J
J
Part - A JO x I = JO /\f1rb
Q. I a1fnlcrio1tt: Aa:111 tr a\
No Questions .,,ans ,BL /
___
Program
,_ is · - - - t.'Tltity stored on disk and process is LJ
'
a) passive, active
b) active, passive
c) passive, passive
I
d active active
2 A process can be
----
D) both single-threaded and multithrcadcd
b) multithrcadcd
c) single-threaded
d stack
3 - - Scheduler reduces the degree of \
multiprogramming
a) Mid- Term Scheduler
b) CPU Scheduler
c) Short Term Scheduler
Lon Tam Scheduler
Which of the following two operations are provided
the lPC facility?
· & delete message
& receive message
a delete message
n,ceive messa e .
tecps 1fack of pending and b\oc'led b,t
each process's context.
SRM Institute of Science and Technology
College of Engineering and Technology I SETB I
School of Computing
SRM Nagnr, Kattankulathur - 603203, Chcngalpattu District, Tamilnadu
Academic Year: 2023-24 (ODD)
PARTB
2 x IO = 20 Marks
Either OR Choice uestions 6 OR 7 8 OR 9
10 L3 1 2 2.6.2
Write a note on Monolithic, Layered and microkemel OS structure and
discuss ros and cons for the same.
OR
10 L3 1 2 2.6.4
As a systems architect, how would you approach designing the operating
system environment for various applications and use cases? What factors
would you consider when selecting and configuring the appropriate
computing environment to meet the specific needs of each scenario?
As a systems analyst working on a project to enhance the functionality of a 10 L3 1 2 2.6.1
computer system, how would you approach designing and implementing various
software components? What types of system programs would you select for
different needs within this ro· ect and how would ou ex lain their suitabilit
OR
Discuss, with examples, how the problem of maintaining coherence of cached 10 L2 1 2 2.6.3 I
data manifests itself in the following processing environments:
a. Single-processor systems
b. Multiprocessor systems
• •••
•
. Ill cm 1111 aa
PARTB
2 x 10 = 20 Marks
Either OR Choice uestions 6 OR 7, 8 OR 9
I) Describe in detail the various services provided by an operating system, 10 L2 l
explaining how each service contributes to the overall functionality and
erformance of the s stem.
OR
2) Imagine that you are a software developer working on the project to 10
design a new Operating system. You need to satisfy the following
requirements ofloosely coupled system, changes in one component do not
affect another component and successfull y run in computer networks and
web applications. Identify the suitable operating structure for these
requirements and justify it.
OR
9 Identify and explain the type of system call and give an equivalent
system caU for Unix operating system.
a) SetFileSecurityO
b) GetCurrentProcessIDO
c) ReadFileO
d SetConsoleMod
•
SRM l mlhulc ofl>clnm and Tc<hnolOI)
(S)SRM
... __ ,..,._,,_,
Collet< or Entln«rinl and Ttthnolol)
School of Compulln~
~ " , li,lf \:......,~ t,,\:c,, " " " " ~ DriMws r......-.i
~ \ .-,r.: 1&!..\.H tOOhl
r-,..... u.-1uu1
1 f'l' t.' l \ Tl ._._2......
( ,..nc l * ' - 1~\f" !IIV !tU ·Otent--C , u a.- \ht.. \lt.1\1: jO
, ... , ,_ ..,.._ n \n, 111,.,_
" ~,,...
t-
...._ '
"-"~M&I.. \blf1, . , - M
I'() I'"
,., ..
l'O
• •
I'()
~
• , •
I'() I'()
• • '°'
PO
' '
Iro• "" '
POI
I
,so l'50
l
• , : " '~
•- I • '• •
(t,)I ) . l l
I• J I J l J
nn.
, , -.' ,~
'
\
• ..
( "01
~ ) l
)
I 1
:
-- -
J :
) I
J
- • (Oi l 1 J
\ - ~ I ll••• 'lftC ,r.,t. A f\ {'_ 0 ... t fltq, •ffh ..-..l .. IWTnat ,_,, n
..,1,-,., I I • t. aN.1 I, t toc, M \ ( N...._.I ,__... 1.0 ff ,,t U.U . . )
..,Ml,,-. t~""l'."-11,.lt 1hr.")' I.I\~ lltat pv,nt,,
a, 1.' I J Nit \ ~ f t , 11t1111l I
I'\ - 0 11rt..;1tw~•"'ff ""') l('f~•N•tw-~Wo#loc.,_-dMillr_..,...... ._.....
""' ....,.,_,_a ,.._1,.,J -,11,-.;: llfltt I'll ,., 1111 ,.,.«."" liat"ff 1W __, ~ " "
l!IIIL', i,,."'...._,.\~tli,;.- .l \.lttlllNl "'" h • ~ r . ..... , ......... ,,cn#_.
~1-.·
I ,_...._"' """' Pr , .... tt# I IM(' ~ " ' " r1 wd Pl T\ic ,,,.. ,.... 11w 11......- ,_
ri ..:• .,,,... " ' ,n""' 100 ~,.,rl) n.- ~ ....-n .rri .., , 1 [Link] » -.t
"'1" r,1.1,1.t-, l h. , .,_,_. a.n, tt [Link]: ptt,r.,_.. ...._., ~ .,_., m
"-N ,,,, ... ;..r:i....~ "" \,[Link] t,1111:, . , , ~
,~llflt~"
11.!lf J<tdl•~
...... ~ ••lc'!Wtlhbc:~-
..
t, \pc-1
~ aa -«t llltW .....,_ I(
'"""-' •[Link]._,., tlw
_.....,.,...11..... l l t ~
at
~ 1"-'
w.. •
(__.,, , IJW"" .. ,-,itt.t~... [Link]"'.aPI P'l. r 1.l'l-4'1_,lrn Jl)JICI
Nt,
.., ,.t,,t-1(
'"'
"I
r ftJ Ille ul.c ~ •hew~ lliit1)""" dPit'\""" Ind IO• dadik_1, o&liflC:
[Link]- t'nc ~
9N :~ ~u [Link]:c
PM'\,__,"'" l:O ..S "° ~8. t.!4 [Link].
aw t,,,:A,•~ pm(cun Pl P1 "'"' _. r-,. ..,,._,. [Link]
'°' ._O 4 JO ~8
.. ,~t-tc 1 - - " ) P"'''...._ 1he ,Wfl " ' " " fft<na,r, ttt u• tr..D. :ua::n '"" tr,,.H
tnll""' ,n ,tlN(1 ~ct, rv,,,,,..1~ .~-..M•t11......., •"'I
a, l •vl,t ·'"t·"....,.
I
t- tt..,r t ,i .\li""''"-
4"1 "t,1;l1tAlr'l.a+.-
..,...,..
( ••4' I~ Jlt'tJ .-1..,MN aC l.)1-Jrf.,a"'11.~ 6" J,,A...,"".,1,_ t.;.;cu I
tt.-..i ..na ()1.-.irf,-,ho,
I '
.,
' I
•• ,,.
••
., ",..
••
Tlic'i&.,)._.,;\c.1,,lfy~{ ',(A, M~•W"'•.... "-'...,...,--.i,~,,_CII
J,U. a.:, 1. ,l1&,,lll A eel 11-; t .A"' °'i;.....,,_ •1111 P"'f"-.~.: """,..._ I )
lie "'-•.r,.t 1.6 tt ~,N H"-H • '"". ,. ~
Chrd •
._.,_,.,....,,,
:ci•itt
)
I
1,j ...... INC'"'•• 1,.._,.___,_,.,..,.w..J_.~ .... ..,_
IUMfltl' '--'> >""' ..... "
I
• Gt1r11,-ptt~•llli.
I J)J I t J.}J I lt.7Jl I U
J 7
'A't«• ..,,..,. .. llllf...,,. ~ . . . . .Jii.1111-a......J-II..
1
- - -- --
. ~~~==:~
6
- ! i r (i(ii) cc'aon,~,~•d~•~r-;;.-;:..,~...
:;;;;;
.,,:;;O~w
:iti.i;;;"'C:6611<[Link];;i
'-' -[Link]~ rl'\>ffl • d1.)k -.i 1h ro11-..f rdata •hoiAd - -
;..SplncHe l•~lfA - - IMency ;,. ...,.,.,n, pa,tarnc:tco.
1 1
'4.200 j1.,. - -
·~ - - :~5.56
;;;-- - - - l
I tnoo ~ 7
110000 - t= -
~ - 12 -
Disk RPM - 1200 3
A vcmgc seek lfme; 5ms
Tmnsrc, ro1c: I OB/sec
Con1rollcr ovcmco<1: 0. I.,,_,
Calculnrc 1hc avcriayc drsk access time.
ii. Rend nnd wrhc •re lhc t"''O opcra110ns iha can be pcrfonnc,s
1
frcquen1ly o;'cr 1'1<, life do1a. Consider we need 10 >ynchronitc
these opcra11ons 10 h•vc data consirtcocy. Explain how 1hc
7 nllribu1c ""file o n count~ hcl in achicvin lhc """'·
There an: lhn:e l)'pe., of life acec,,.s methods. They an:
comi11uou.,. linked and indexed aecc,:,. A..umc • Jile is
currcnlly consl,1ing of I SO blocks. All the de1a1ls n:l1,1cd to lilc
con1rol opcrn1ion urc slorcd in lhc memory. Calculo1c how
I
m11ny dis k n:ad/wri1c opcrn1ions ore required for con1111uous.
linked, ond indexed (single-level) alloca1ion •tralegics. A.,sun,c
, 1h01 in the. cnse of con11suou-J-all«alion. 1hcrc i~ no way 10
grow(ndd) a1 lhc bcginnini,: bu1 We can cxlcnd(Add} al lhc cnd. 4 3
I Also llK<ume 1h01 the block lnforma1ion lo be a<l_dcd ts slorcd in
memory.
a. Add a block in lhc bcgrnning
b. Addo block in lhe middle
c. Add a block al lhc end.
d. [Link]!)O)'.~ a. bl~Jc ff'2m !hc_bcJ!i!!.'1!n&.i.,' __________._
Course Ourc:ome (CO) and Bloom's level (BL) Coverqe In Questions
co~ (l)\l(llA(i[ !HO'J!IV,G( "
.,
,.••
• ~ n•
II .7 .,, • '"'
·•·
•II\