You are on page 1of 1

Assignment

1. Write a program in C to show the grann chart, the waiting time and turn around time of
First Come First Serve (FCFS) CPU scheduling algorithm and execute it on Ubuntu
terminal.
Sample input

Process Arrival Time Burst Time


P1 0 5
P2 1 2
P3 3 1
P4 4 3
P5 4 2
2. Write a program in C to show the grann chart, the waiting time and turn around time of
SJF (non preemptive) CPU scheduling algorithm and execute it on Ubuntu terminal.
Sample input

Process Arrival Time Burst Time


P1 0 2
P2 1 5
P3 3 3
P4 4 1

You might also like