CS239 Operating System (End - SP23)
CS239 Operating System (End - SP23)
INSTRUCTIONS:
1. The question paper contains 5 questions each of 10 marks and total 50 marks.
2. Attempt all questions.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------
Q.3(a) Explain the rules to satisfy any solution to the critical section problem [2]
Q.3(b) What does this RA graph signify? [3]
PTO
Q.3(C) ╔════╦═══════════╦═══════════╗ [5]
║ ║ Alloc ║ Max ║
╠════╬═══╦═══╦═══╬═══╦═══╦═══╣
║ ║X ║Y ║Z ║X ║Y ║Z ║
╠════╬═══╬═══╬═══╬═══╬═══╬═══╣
║ P0 ║1 ║1 ║2 ║4 ║3 ║3 ║
╠════╬═══╬═══╬═══╬═══╬═══╬═══╣
║ P1 ║2 ║1 ║2 ║3 ║2 ║2 ║
╠════╬═══╬═══╬═══╬═══╬═══╬═══╣
║ P2 ║4 ║0 ║1 ║9 ║0 ║2 ║
╠════╬═══╬═══╬═══╬═══╬═══╬═══╣
║ P3 ║0 ║2 ║0 ║7 ║5 ║3 ║
╠════╬═══╬═══╬═══╬═══╬═══╬═══╣
║ P4 ║1 ║1 ║2 ║1 ║1 ║2 ║
╚════╩═══╩═══╩═══╩═══╩═══╩═══╝
Q.4(a) Is the worst fit algorithm ever helpful in contiguous memory allocation? [2]
Q.4(b) Explain thrashing and how it can be avoided [3]
Q.4(C) For 3 available frames, the following is the reference string: [5]
70120304230321201701
How many page faults will the LRU and Optimal page replacement algorithms produce?
::::::25/04/2023::::::M