What is inter-process communication? Consider the following processes with their arrival times and burst times:
| Process | Arrival Time | Burst Time |
| P1 | 0 | 4 |
| P2 | 1 | 3 |
| P3 | 2 | 7 |
| P4 | 3 | 2 |
Calculate the average waiting time and average turnaround time for FCFS and shortest job.
Discuss the four necessary conditions for a deadlock to occur and explain how each condition contributes to the occurence of deadlock. Explain how deadlock should be handled.
What is virtual memory and why is it important in modern operating system. Explain the concept of paging.
Attempt any Eight questions
[8x5=40]What is a system call in an operating system? Describe the process of handling system calls and the role of system programs in managing them.
Define the concept of threads. Compare and contrast threads and processes.
Explain the concept of a resource allocation graph. How is it used to detect deadlock in a system with multiple resources?
Explain the DMA operation and how does it improve the system performance.
Describe the different file access methods. Compare sequential and direct access methods.
Assume the disk has 200 tracks (numbered from 0 to 199). The disk head is initially positioned at 100, and we have a sequence of requests for tracks in the following order: 55, 58, 39, 18, 90, 160, 150, 38 calculate the seek time for the disk scheduling algorithm FCFS and SCAN.
Consider the page references 3, 2, 1, 5, 4, 2, 1, 3, 5, 2 find the number of page fault using LRU and optimal page replacement algorithm with 3 page frames?
What are the merits and demerits of contiguous file allocation? How it differs from linked list allocation.
Write short notes on:
a. Kernel modules in Linux.
b. Semaphore.