OS Nov Dec 2010 QP
OS Nov Dec 2010 QP
com
Fourth Semester
(Regulation 2008)
4. What is a deadlock?
PART B — (5 × 16 = 80 Marks)
11. (a) (i) Explain how hardware protection can be achieved and discuss in detail the dual
mode of operations. (Marks 8)
www.vidyarthiplus.com
www.vidyarthiplus.com
Or
(b) What is meant by a process? Explain states of process with neat sketch and discuss the
process state transition with a neat diagram. (Marks 16)
12. (a) What is a critical section? Give examples. What are the minimum requirements that
should be satisfied by a solution to critical section problem? Write Peterson Algorithm for 2-
process synchronization to critical section problem and discuss briefly. (Marks 16)
Or
abcdabcdabcd
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6
(iii) If the request for process P1 arrives for (0,4,2,0) can it be granted immediately. (Marks
16)
13. (a) Given memory partition of 100 KB, 500 KB, 200 KB and 600 KB (inorder). Show
with neat sketch how would each of the first-fit, best-fit and worst fit algorithms place
processes of 412 KB, 317 KB, 112 KB and 326 KB (in order). Which algorithm is most
efficient in memory allocation? (Marks 16)
Or
(b) Explain the concept of demand paging. How can demand paging be implemented with
virtual memory? (Marks 16)
14. (a) (i) Explain various file allocation methods in detail. (Marks 8)
www.vidyarthiplus.com
www.vidyarthiplus.com
(ii) What are the possible structures for directory? Discuss them in detail. (Marks 8)
Or
(b) Explain in detail the free space management with neat diagram. (16)
15. (a) Explain in detail various disk scheduling algorithms with suitable example. (Marks
16)
Or
www.vidyarthiplus.com