Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that there exists three priorities (1,2,3) which are used as multipliers of the basic time quantum value with the resulting number being the maximum service time the corresponding job will receive each time it gets the CPU. For a maximum amount of time equal to 1 basic time quantum , a priority 2 job gets the CPU for the maximum amount of time equal to whatever 2 times the basic time quantum is, and a priority 3 job gets the CPU for the maximum amount of time equal to whatever 3 times the time quantum is. Of course, a job may terminate before its allocated amount of time expires. Since the queue is dynamic, jobs will have different arrival times.
nonpreemptive priority: scheduling algorithm will simply put the new process at the head of the ready queue
This question is Nonpreemptive Round Robin based priority.
Each process is being multiplied by the quantum basic time = 2
1. P1= 2*1=2
2. P2= 2*2=4
3. P3= 3*2=6
Because the queue is dynamic then jobs will arrive at different timing. If two jobs are arriving on same time which is possible, the one highest priority gets placed in the queue first. (We will ignore the case of equal priorities AND equal arrival times)
Shortest job forgets about priority.
The first 3 questions you have to use Round Robin priority. Then you have to repeat those three questions for question 4 using Shortest Job First and Longest Job First, the answers the questions
1. Show a Gantt Chart showing how the queue is serviced to the completion of all jobs
2. Compute the waiting time And the turnaround time for EACH job in the queue
3. Compute the average waiting time And the average turnaround time associated with servicing the queue.
4) Compare the results obtained in the questions 1-3 with servicing queue strictly on a shortest job first basis. REMEMBER THE ARRIVAL TIMES. What are your observations and why? Is it true that since no algorithm performs better than Shortest Job First, no algorithm performs worse than Longest Job First? Prove your answer.
| Process | length | Priority | ArrivalTime |
|---|---|---|---|
| P1 | 5 | 2 | 0 |
| P2 | 8 | 3 | 1 |
| P3 | 3 | 1 | 5 |
| P4 | 10 | 3 | 2 |
| p5 | 2 | 1 | 1 |
| p6 | 5 | 1 | 2 |




Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that ther...
4. Consider a ready queue with four processes :- Process Arrival Time Burst Time (ms) P1 Priority P2 P3 P4 P5 For each of the following CPU scheduling algorithms, determine the turnaround and average waiting time for each of the process :- a. Shortest remaining Time First b. Shortest Job First C. Priority Scheduling (Both pre-emptive and non-preemptive) d. Round Robin (quantum is 1 ms)
Given the following set of processes with corresponding execution times (in ms), arrival times and priority (1 – highest). For each scheduling algorithm: Construct a table showing which process is active and for how long until all processes are completely serviced (as done in class). Calculate the average waiting time and turnaround time. Process ID Burst (ms) Arrival time P1 9 0 P2 12 0 P3 3 0 P4 30 0 P5 20 0 P6 10 0 First Come First Serve...
The following processes are being scheduled using a pre-emptive, priority-based, round-robin scheduling algorithm. Process Burst Time Priority Arrival 20 20 0 20 25 45 55 5 5 5 15 Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is pre-empted by a higher-priority process,...
a-) Draw the gantt chart and
computecpu waiting time using preeptive-priority algorithm for the
cpu I/O device is using FCFS. Compute cpu utilization as well.
b-) Draw the gantt chart and compute cpu waiting time using
round-robin algorithm for the cpu where quantum is 3 milli seconds.
Compute cpu utilization as well.
comp 214 2019/2020 Summer School Assignment 1 Priority Arrival Time 4 cpu 12 cpu 6. 3 3 P2 2 4 2 4 loane P3 4 ㅋ 8 6...
##1, Assume that you have the following processes all arriving at time 0: Process Burst Priority P1 8 4 P2 6 1 P3 1 2 P4 9 2 P5 3 3 For each of the following CPU scheduling algorithms, determine the turnaround and wait times for each process as well as the average wait and turnaround times. v First Come First Serve v non-preemptive SJF v preemptive SJF v Non-Preemptive Priority Scheduling v Round Robin (assume a quantum of 1)...
Process Arrival Time Burst Time P1 0 2 P2 1 1 P3 2 4 P4 3 2 P5 4 1 Consider a set of processes given above with the arrival time and the length of CPU burst time given in cycles. Show a Gantt chart and calculations of average turnaround time and average waiting time of these processes under the shortest job first (SJF) with preemption CPU scheduling algorithm and the round-robin...
6. Draw GANTT charts (plots of activity vs. time) for the Round Robin and Priority scheduling strategies for the following jobs (assume larger numbers mean higher priority and that the time quantum is 2): (10 marks ) Job Arrival Time Duration Priority tam What is the average waiting time under each scheme? Time → Average wait time for round robin is: PRIORITY Time → Average wait time for round robin is:
(30 points) Assume you have three processes with the following attributes running on a single CPU (uniprocessor system): Process 1/0 Burst Total CPU Time Arrival Time CPU Burst | 05 22 12 B 7 10 C D Create three scheduling simulations for these processes using the following algorithms: a. First Come First Served (FCFS) b. Round Robin, Time Slice = 2 c. Shortest Job (CPU Burst Time) First with NO Preemption Use the simulation format we covered in class to...
V. Round Robin and SJF comparison 6 Process Arrival Time CPU Burst Time P1 0 9 P2 4 4 P3 6 P4 For each of the following algorithms, draw a Gantt chart and calculate the average wait time and turn around time. 1. Round robin with quantum=1 time unit 2. Round-robin with quantum=3 time-units 3. SJF WI preemption (Shortest Remaining Time First), assume quantum=3 4. SJE Wlo preemption 5. ECES
Assume that you have four different processes with the following attributes: Process Arrival time. CPU Burst. I/O Burst Total CPU time A. 0 4 4 9 B 3 2 3 7 C 6 5 1 11 D 12 1 1 5 As we did in class, perform a scheduling simulation using these four processes according to the following algorithms: 1) First Come First Serve 2) Round Robin with time slice = 1 3) Round Robin with time slice = 3...