(Ij) Ej (Itill) : Fifth Semester B.E. Degree Examination, June-July 2009
(Ij) Ej (Itill) : Fifth Semester B.E. Degree Examination, June-July 2009
2 a. Describe the process states with the help of state diagram. (06 Marks)
b. Discuss various multithreading models with diagram. (06 Marks)
c. Consider the followinl! set of .
Process Burst time Arrival time Priority
PI 10 0 2
P2 5 2 1
P3 2 3 0
P4 20 5 3
Table Q2(c)
Draw Gantt charts and calculate average waiting time, average turnaround time
using following CPU scheduling algorithms.
i) Preemptive shortest Job First.
ii) Non preemptive priority ( 0 = HIGHPriority). (08 Marks)
3 a. What are the three requirements to be met by a solution to the critical section
problem? Explain. (06Marks)
b. Describe the Bounded - buffer problem and give a solution forthe same using
semaphores. Write the structure of producer and consumer processes. (08Marks)
c. Describe the following: i) Semaphore ii) Wait ( ) operation
iii) Signal ( ) operation. (06 Marks)
. -""11]/
R~
'~-6---,
~'L:J
~3
~~r
pJ)
Y-4 ~'- ~
Fig.Q4(c) (i) Fig. Q4(c) (ii)
PART- B
5 a. Assume we have a paged memory system with associative registers (TLBs) to hold
the most active page table entries. If the page table is normally held in memory and
memory access time is Imicro second, what would be the effective access time if
85% of all memory references find their entries in the associative registers. Assume
that associativeregistersaccesstime is zero. (04Marks)
b. Give the differences between: i) Internal and external fragmentation ii) Paging
and segmentation. (06Marks)
c. Discuss the steps involved in handling page fault, with diagram. (06Marks)
d. Consider the following page reference string 7,0, 1,2,0,3,0,4,2,3,0,3,2, 1,2,
0, 1, 7, 0, 1 . How many page faults would occur for FIFO page replacement
algorithm, assuming three frames? (04Marks)
*****
20f2