UNC501
UNC501
Qi. Discuss the need for a system call and explain any four system calls with their functionality. 4
Q3. Consider a set of five processes, P1, P2, P3, P4, and P5, with the following burst times and 7
time quantum for the round-robin scheduling algorithm:
PI: Burst Time = 24 ms
P2: Burst Time = 8 ms
P3: Burst Time = 12 ms
P4: Burst Time = 10 ms
P5: Burst Time = 16 ms
Time Quantum (TQ) = 6 ms
Assume that processes arrive in the order PI, P2, P3, P4, and 135, and that each process starts
at time 0. Calculate each process's turnaround time, waiting time, and completion time.
Q4. Consider a set of five processes, P1, P2, P3, P4, and P5, with the following burst times and 7
arrival times:
• P1: Arrival Time = 0 ms, Burst Time = 10 ms
• P2: Arrival Time = 1 ms, Burst Time = 5 ms
• P3: Arrival Time = 2 ms, Burst Time = 8 ms
• P4: Arrival Time = 3 ms, Burst Time = 3 ms
• P5: Arrival Time = 4 ms, Burst Time = 6 ms
Using the Highest Response Ratio Next (HRRN) scheduling algorithm, calculate each
process's waiting time, turnaround time, and completion time.
Q5. Illustrate the process of Deadlock and its necessary preventive measures. 5
Q6. Apply Banker's algorithm to avoid deadlock and find the safe sequence. You are 7
given a system with three resource types A, B, and C, and you have the following
information: