Csa04 Operating System
Csa04 Operating System
ANALYTICAL PROBLEM
1. An operating system uses FCFS process scheduling algorithm. Consider the arrival times and
execution times for the following processes:
2. An operating system uses Shortest Job First (SJF) process scheduling algorithm. Consider
the arrival times and execution times for the following processes:
3. Consider the following table of arrival time, burst time and priority values for three
processes P0, P1 and P2.
Process Arrival time Burst Time Priority
P0 0 ms 9 ms 1
P1 1 ms 4 ms 2
P2 2 ms 9 ms 3
What is the average waiting time for the three processes if priority-based scheduling is used?
4. Write a program to compute the average waiting time and turnaround time based on
Preemptive shortest remaining processing time first (SRPT) algorithm for the following set
of processes, with the arrival times and the CPU-burst times given in milliseconds
P1 0 5
P2 1 3
P3 2 3
P4 4 1
LAB EXPERIMENTS