

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


2 uestions forF~h~
Number - of QueS
ions: . __ xam~. :.:::::m:.:::ati~o~n
N~um~b~e:!...r ~of~ a~e~s:~2:__
three
Firs t Oues on.
a. Consider the following set ofprocesses, w1 the lengthof the CPU-burst
time given in milliseconds:
Process Burst Time Priority
Po 10
5
P 7 1
3 3
p 6
4
5 • 2
j •
The processes are assumed to have arnved m the order
Po, P1, P2, P3, P all . I
at time 0.
ofthese processes
using FCFS, SJF, priority (a smaller priority number implies a higher
priority), and RR (quantum= 2) scheduling.
scheduling algorithms?
3. Which o£th.e schedules isthe m inim al average -waiting time?
b. Given four memory partitions of 150 KB, 500 KB, 300 KB,and 600 KB
(in order), how would each ofthe first-fit, best-fit, and worst-fit algorithms
place processes of230 KB, 420 KB, 130 KB, and 450 KB (in .order)?
Which algorithm makes the most efficient use
of memory?
~
-f the -followU1S
1 cexn-ent
o
. g·
th
age-rep
a
6 5 8 6
faults
occur
for
e p
3 2 6
2,8,
, , ,
c. J-foW
ui.anY
p~g~
5 ~ 6 2,8,3,~,~,2,
,, ,3,8,
, , ,
reference
str~gi•
:U:ciLRU
algori~s
. e)
FIFO,
Optuna
,
be ~ memory
at a um
3 frames
( pages
can
~~
.
d
t ro·
c -
12, an
. snapshot
of a sys e ·.
_
= 14,
d. Consider
the followm~
of resources
is: A-
Where
the number
of instances have
5 processes.
A v,ailable
~ou
' Allo~tion
, >
ax
C
ABC
1
1
5
1
0
0
Po
~
0
0
1
~ 7
5
P
5
3
5
2
l
P
1
3
0
6
5
p
O
6
p
3
O
O
1
0
,
5
1
What
4
is the content
of the ma trix\f
eed?
2·. Prove
that the system
is in a safe
. tate or not. Second Question:
Answer
Five
only
J the following
questions l} ,
J Mai:}s.s
marks
ea~b.)
--
=-r-
a. What
is the Operating
System
Definition?
b. Describe
the differences
among
short-term,
medium-term,
and
long-term
scheduling.
1
c. D~fferent~ate
between
Pre-~mptive
T Non-~re-emptive
Scheduling.
d. Differentiate
between
Paging
and Se pn entat1on.
e. What
are the four
Necessary
Conditi
\lns for Deadlock?
and
how
to -prevent
it'?
f. Describe
the file Allocation
Metho
dr
g. What
are the
v~ious
kinds
of p erformance
overheads
associated
servicing
interrupt?
-wi.sfies
Operating
Svst
ems
1 Page