Operating Systems 2079
Section A
Long Answer Questions
Attempt any TWO questions. [2 × 10 = 20]
AI is thinking...
1. What are the different types of operating systems? Differentiate between Real-time and Batch OS. [10]
AI is thinking...
2. What is a kernel? Explain the process of a system call with a suitable diagram. [2+8]
AI is thinking...
3. What is a Resource Allocation Graph (RAG)? What are the necessary conditions for deadlock? Explain. Determine if the system is safe from deadlock or not using Banker's Algorithm for the given condition.
Process | A | B | C |
---|---|---|---|
P1 | 11 | 6 | 4 |
P2 | 3 | 4 | 1 |
P3 | 8 | 2 | 3 |
P4 | 3 | 2 | 4 |
P5 | 5 | 2 | 3 |
Process | A | B | C |
---|---|---|---|
P1 | 3 | 1 | 1 |
P2 | 3 | 1 | 0 |
P3 | 4 | 1 | 1 |
P4 | 1 | 0 | 1 |
P5 | 2 | 0 | 1 |
A | B | C |
---|---|---|
17 | 8 | 10 |
[Note: Consider process sequence as: P1, P2, P3, P4, P5] [1+4+5]
AI is thinking...
Section B
Short Answer Questions
Attempt any EIGHT questions. [8 × 5 = 40]
AI is thinking...
4. What is an OS? Explain the 3-state model of a process with a neat and clean diagram. [1+4]
AI is thinking...
5. What is a race condition? Explain critical problem solution using lock variable. [2+3]
AI is thinking...
6. What is memory compaction? Explain best fit memory allocation with a suitable example. [1+4]
AI is thinking...
7. What is RAID? Explain Level-2 and Level-3 RAID. [5]
AI is thinking...
8. How do threads differ from processes? Explain user level thread and kernel level thread. [2+3]
AI is thinking...
9. Consider the following page reference string: 3, 2, 1, 3, 4, 2, 8, 9, 7, 4, 2, 9, 8, 3
. Calculate the total number of page faults for Optimal and LRU page replacement algorithms using 4 page frames. [5]
AI is thinking...
10. Explain the working mechanism of DMA. [5]
AI is thinking...
11. What is TLB? Explain the importance of TLB in the conversion of logical address to physical address. [5]
AI is thinking...
12. Consider a 500 GB hard drive with 5 KB block size. Calculate the size of the file allocation table if the entry for each block needs 4 bytes. [5]
AI is thinking...