Question

In: Computer Science

The following processes are being scheduled using a preemptive, priority-based, round-robin scheduling algorithm. Each process is...

The following processes are being scheduled using a preemptive, priority-based, round-robin scheduling algorithm. 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 preempted by a higher-priority process, the preempted process is placed at the end of the queue.

Process            Burst Time Arrival Time Priority

P1 15 0 8

P2 20 0 3

P3 20 20 4

P4 20 25 4

P5 5 45 5

P6 15 55 5

What is the average turnaround time of these processes?

What is the average waiting time of these processes?

Solutions

Expert Solution

I WROTE THE ANSWER ON THE SHEET OF PAPER WITH CLEARLY:

PREEMPTIVE PRIORITY :

ROUND-ROBIN:


Related Solutions

Question 5 The following processes are being scheduled using a preemptive, priority-based, round-robin scheduling algorithm. Each...
Question 5 The following processes are being scheduled using a preemptive, priority-based, round-robin scheduling algorithm. 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 preempted by a higher-priority process, the preempted process is placed at the end of the queue. Process          Burst Time      Arrival Time   Priority P1                15            0            8...
There are n processes in a queue. Each process has namei and timei. The round-robin scheduling...
There are n processes in a queue. Each process has namei and timei. The round-robin scheduling handles the processes in order. A round-robin scheduler gives each process a quantum (a time slot) and interrupts the process if it is not completed by then. The process is resumed and moved to the end of the queue, then the scheduler handles the next process in the queue. For example, we have the following queue with the quantum of 100ms. A(150) - B(80)...
First-Come, First-Served (FCFS) Scheduling Shortest-Job-Next (SJN) Scheduling Priority Scheduling Shortest Remaining Time Round Robin(RR) Scheduling Multiple-Level...
First-Come, First-Served (FCFS) Scheduling Shortest-Job-Next (SJN) Scheduling Priority Scheduling Shortest Remaining Time Round Robin(RR) Scheduling Multiple-Level Queues Scheduling Provide a timing example of each of the algorithms above. List some processes (at least four) with the appropriate properties for creating a time diagram (such as Process ID, Arrival Time, Burst Time, and Execution Time). Walk through the timing diagram identifying the algorithm you’re using and state which process goes first, which process finishes first, etc.
A variation of the round-robin scheduler is the regressive round-robin scheduler. This scheduler assigns each process...
A variation of the round-robin scheduler is the regressive round-robin scheduler. This scheduler assigns each process a time quantum and a priority. The initial value of a time quantum is 50 milliseconds. However, every time a process has been allocated the CPU and uses its entire time quantum (does not block for I/O), 10 milliseconds is added to its time quantum, and its priority level is boosted. (The time quantum for a process can be increased to a maximum of...
In C, write a program that will simulate the operations of the following Round-Robin Interactive scheduling...
In C, write a program that will simulate the operations of the following Round-Robin Interactive scheduling algorithm. It should implement threads for the algorithm plus the main thread using a linked list to represent the list of jobs available to run. Each node will represent a Job with the following information: int ProcessID int time time needed to finish executing The thread representing the scheduler algorithm should continue running until all jobs end. This is simulated using the time variable...
Draw six Gantt charts that illustrate the execution of these processes using the following scheduling algorithms:
Draw six Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: 
For each of the following processes, describe what kind of energy is being converted into what...
For each of the following processes, describe what kind of energy is being converted into what other kind(s). Valid forms of energy for the purpose of this question are “kinetic energy of (object),” “gravitational potential energy,” “elastic potential energy of (object),” or “internal energy of (object).” There may be more than one conversion involved, so your answer should be a kind of narration of the energy conversion(s). For example, if the process is, “A girl skating on rollerblades skids to...
using Java, Implement the following algorithm: - Accept 5 different memory partitions and 4 different processes...
using Java, Implement the following algorithm: - Accept 5 different memory partitions and 4 different processes from user and show how best fit algorithm allocates them.
For each of the following intragroup transactions, assume that the consolidation process is being undertaken at...
For each of the following intragroup transactions, assume that the consolidation process is being undertaken at 30 June 2020, and that an income tax rate of 30% applies. Prepare the consolidation worksheet adjustment entries for these transactions or where adjustment entries are given, explain the transaction that took place. All parts are independent unless specified. Riverland Ltd owns all the share capital of Eastwood Ltd. i. Eastwood Ltd imports certain items from Germany which are then marketed and sold through...
perform each of the following steps: a) Read the problem statement. b) Formulate the algorithm using...
perform each of the following steps: a) Read the problem statement. b) Formulate the algorithm using pseudocode and top-down, stepwise refinement. c) Define the algorithm in JavaScript. d) Test, debug and execute the JavaScript. e) Process three complete sets of data. Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording the number of miles driven and the number of gallons used for each tankful. Develop a script...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT