Topic:Uniprocessor Scheduling
You were given five processes with their arrival time and execution time for each in the table.A scheduling algorithm is used to estimate the CPU time required to allocate to the processes and threads.The prime goal of any CPU scheduling algorithm is to keep the CPU as busy as possible for improving CPU utilization
Question 1:Develop the schedule(time diagram) for the following Operating System Scheduling Algorithms
1.First-Come-First-Served(FCFS)
2.Shortest Process Next(SPN) 3. Round Robin
Assume the length of the time quantum,or slice is 1(q=1)
Process
Arrival Time
Execution Time
P1
0
4
P2
2
3
P3
3
P4
4
P5
6
Question 2: Consider the expectations below:
Expectations:
-The average waiting time should be smaller than FCFS -Performance of the scheduling algorithm should be archived in minimum average waiting time(Fast)
Which Scheduling Algorithm you would use? Explain your response.