Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications
| Paper detail | Value |
|---|---|
| Course | Operating System |
| Code No. | CACS251 |
| Semester | IVth |
| Full marks | 60 |
| Pass marks | 24 |
| Time | 3 hours |
Candidates are required to answer the questions in their own words as far as possible.
Group B
2. What is a monolithic kernel? How is it different from microkernel? Explain. [1+4]
3. What is multithreading? Explain different types of threads. [1+4]
4. Explain the different process states in detail. [5]
5. What are the necessary conditions for the deadlock? How deadlock is different from starvation? [4+1]
6. What is segmentation? How can it be used for the memory management? [1+4]
7. What are different page replacement algorithms? Explain. [5]
8. List some security problems in operating system. Explain the role of clock synchronization in distributed system. [2+3]
Group C
9. What is producer consumer problem? Explain the solutions of producer consumer problem using sleep and wakeup and compare it with the solution using semaphores. [1+4+5]
10. Consider the following resource allocation state:
| Allocation | Max | Available | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A | B | C | D | A | B | C | D | A | B | C | D | |
| P₀ | 0 | 0 | 1 | 2 | 0 | 0 | 1 | 2 | 1 | 5 | 2 | 0 |
| P₁ | 1 | 0 | 0 | 0 | 1 | 7 | 5 | 0 | ||||
| P₂ | 1 | 3 | 5 | 4 | 2 | 3 | 5 | 6 | ||||
| P₃ | 0 | 6 | 3 | 2 | 0 | 6 | 5 | 2 | ||||
| P₄ | 0 | 0 | 1 | 4 | 0 | 6 | 5 | 6 | ||||
| Find the need matrix. Using Bankers algorithm, check whether the system is in safe state or not? If yes, find the execution order of the processes. [10] |
11. What are seek time and disk access time? Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently serving a request at cylinder 2,150, and the previous request was at cylinder 1,805. The queue of pending requests, in FIFO order, is: 2069, 1212, 2296, 2800, 544, 1618, 356, 1523, 4965, 3681. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?
- A. FCFS
- B. SSTF
- C. C-SCAN
- D. C-LOOK [2+8]