OS14
OS14
O
o PART _ A
2
Ia. D i fferentiate between multipro grammi ng and multiproc ess ing. (05 Marks)
b. Explain the various functions of operating system with respect to process and memory
aiu
-a rnanagement. (05 Marks)
I
bJr
.=-X l What are the different ways in which the Pthread terminates? (05 Marks)
.= al
d. Explain any two facilities provided for irnplementing interacting process in programming
language and operating system. (05 Marks)
og
e.)
c>
t= 2a. Difl'erentiate bcnveen :
/.: i) User level and kemel level threads
;) ') ii) Process and thread. (06 Marks)
b. Following is the snapshot ofa cpu
o 3a. Explain critical section problem. What are the requirements that critical section problem
U< nrust satisfy? (05 NIarks)
-i 6i b. Explain Reader's - writers problem and provide a semaphore solution using semaphore's for
t)
reader's priority problem. (10 Marks)
z U. What are monitors? Compare with semaphores with their relative advantages and
cC
disadvantages. (05 Marks)
o
e.
I of2
10css3
4 a. Consider a system containing m resources of the same type being sharecl by n processes.
Resources can be requested and released by processes only one at a time. Show that the
system is deadlock free if the following two conditions hold :
i) The maximum need of each process is between 1 and m resources
ii) The sum of all maximurn needs is less than m * n. (10 Marks)
b. For the given snapshot :
Max Available
A B C D A B C D A B C D
Pr 0 0 2 0 0 2 I 5 2 0
Pz 0 0 0 I 7 5 0
l
P3 ) 5 4 2 -) 5 6
Pa 0 6 -) 2 0 6 5 2
Ps 0 0 4 0 6 5 6
PART -B
5 a. What is locality of reference? Differentiate befween paging and segmentation. (05 Marks)
b. Explain the differences between :
i) Logicai and physical address space
ii) Internal and extemal fragmentation. (05 Marks)
c. For the following page reference calculate the page faults that occur using FIFO and LRU
for3 and 4pageframes respectively,5,4,3,2, 1,4,3,5,4,3,2, l, 5. (l0Marks)
6 a. What are the different'techniques with which a file can be shared among users? (06 Marks)
b. Given memory parlitions of 100 k, 500 k, 200 k, 600 k (in order), which algorithrn from best
fit, worst fit and first fit p laces processes with requirernents 2I2 k, 417 k, I I 2 k and 426 k in
an efficient manner? (06 Marks)
c. Explain the various storage mechanisms available to store files, with neat diagram.(08 Marks)
a. Given the following queue 95, 180, 34,1I9,11,723,62,64 with head initially at track 50
and ending at track 199 calculate the number of moves using F'CFS, SSTF, Elevator and C
look algorithm. (12 Marks)
b. What are access matrices? Explain its implementation. (04 Marks)
c. Differentiate between protection and security. (04 Marks)
x****
2 of2