CS2201_OS_Paper_Set_1
CS2201_OS_Paper_Set_1
Enrolment No:
A B C D A B C D A B C D A B C D
Q B3
P0 6 0 1 2 4 0 0 1 ? ? ? ? 3 2 1 1
P1 1 7 5 0 1 1 0 0 8
CO-4
P2 2 3 5 6 1 2 5 4
P3 1 6 5 3 0 6 3 3
P4 1 6 5 6 0 2 1 2
(a) A computer system has a 36-bit virtual address space with a page size of 8K, and
4 bytes per page table entry.
i) How many pages are in virtual address space?
ii) What is the maximum size of addressable physical memory.
(b) A translation look-aside buffer (TLB) is sometimes used to optimize paging
Q C2 5+5 CO-5
systems. A memory chip uses (single level) paging and has a memory access
time of 12 nanoseconds and a TLB search time of 2 nanoseconds. What hit ratio
(the probability that an item is in the TLB) must be achieved if we require an
average (paged) memory access time of 12 nanoseconds?
SECTION-D
Q D1 a) Predict the output of the following code segments and justify your answer:
Q D2 A disk has 200 tracks (numbered 0 through 199). At a given time, it was serving the
request of reading data from track 120, and at the previous request, service was for track
90, the pending request (in order of their arrival) are for track numbers.
30,70,115,130,110,80,20,25 10 CO-6
How many times will the head change its direction for the disk scheduling policy FCFS
and SSTF, SCAN and LOOK? Calculate the seek time. Draw an appropriate diagram to
explain.