Questions
Questions
USN
RV COLLEGE OF ENGINEERING®
(An Autonomous Institution affiliated to VTU)
III Semester B. E. Fast Track Examinations Oct-2020
Computer Science and Engineering
OPERATING SYSTEMS
Time: 03 Hours Maximum Marks: 100
Instructions to candidates:
1. Answer all questions from Part A. Part A questions should be answered
in first three pages of the answer book only.
2. Answer FIVE full questions from Part B. In Part B question number 2, 7
and 8 are compulsory. Answer any one full question from 3 and 4 & one
full question from 5 and 6.
PART-A
PART-B
OR
5 a Given five memory partitions of 100 𝐾𝐵, 500 𝐾𝐵, 200 𝐾𝐵, 300 𝐾𝐵 and
600 𝐾𝐵 in order, how would first fit, best fit and worst fit algorithms
place processes of 212 𝐾𝐵, 417 𝐾𝐵, 112 𝐾𝐵 and 426 𝐾𝐵 in order? Which
algorithm makes the most efficient use of memory? 08
b With a neat diagram explain the basic paging scheme of memory
management. Also discuss the hardware support for paging. 08
OR
6 a What are logical and physical address space? Justify how memory
management helps programmer to have larger logical address
compared to available physical memory. 08
b Consider the following page reference string:
1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6
How many page facility will occur by 𝐿𝑅𝑈, 𝐹𝐼𝐹𝑂 and optimal page
replacement algorithms, assuming 5 free frames. 08
7 a What is thrashing? What are the causes for thrashing? Discuss the
mechanism to prevent it. 06
b Suppose on a disk with 5000 cylinders, number 0 to 4999. The drive is
currently serving a request at cylinder 143. The queue of pending
requests in 𝐹𝐼𝐹𝑂 order is 𝐵6, 1470, 913, 1774, 948, 1509, 1022, 1250, 130
starting from the current position what is the total number of disk
moves for the following algorithms
i) shortest seek time first (𝑆𝑆𝑇𝐹)
ii) 𝑆𝐶𝐴𝑀
iii) 𝐿𝑂𝑂𝐾. 10
𝐴𝑙𝑙𝑜𝑐𝑎𝑡𝑖𝑜𝑛 𝑀𝑎𝑥
𝑃𝑟𝑜𝑐𝑒𝑠𝑠
𝐴 𝐵 𝐶 𝐷 𝐴 𝐵 𝐶 𝐷
𝑃 0 0 1 2 0 0 1 2
𝑃 1 0 0 0 1 7 5 0
𝑃 1 3 5 4 2 3 5 6
𝑃 0 6 3 2 0 6 5 2
𝑃 0 0 1 4 0 6 5 6