answersLogoWhite

0


Best Answer

In one process

( Start time (of the second) - Finish time (of the first) ) - Arrival time

If the process is not broken up into different arrival times, then ignore and stick to

starting time - arrival time

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you calculate average waiting time in preemptive priority scheduling?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the relationships between priority and FCFS of CPU scheduling algorithms?

this is my doubt about the non-preemptive priority scheduling. i m doing bachelor of engineering in IT and this question in end semester exam. the question is as follows:Assume you have the following jobs to be executed with one processor, with the jobs arriving in the order listed here:Process Burst Time PriorityP1 80 5P2 20 1P3 10 3P4 20 2P5 50 4Suppose the system uses priority scheduling. Draw Gantt chart and calculate average waiting time for the processes.My doubt is:suppose if we were to use non-preemptive priority scheduling, the question says the jobs arriving in the order listed, so as per the order P1 will arrive first so it will get the CPU first and in non-preemptive once a job gets CPU it will not leave CPU till the process finishes, then as per the order P2 will come and same thing repeats.... so it acts like FCFS scheduling and priority is of no use here. But my lecturer says we have to follow the priority and P2 will come first, but the line the jobs arriving in the order listed is still not letting me agree with my lecturer. Can anyone help out?


How do you calculate average time for preemptive short job first scheduling?

u know man, i find it all over the net and i dont understand single thing about it.. like the India people says.. FAKE!!


How do you calculate activa average?

how we calculate the average of activa


Compute the average waiting time and average turnaround time for each what scheduling algorithms and determine which one gives the best results. a.FCFS b.SJN c.SRT d.round robin?

c program for shortest remaining time scheduling algo


How do you calculate Average selling price?

how to calculate average selling price


How do you calculate average daily collection?

hoe do u calculate average daily collection?


University solved slips for third year bsc computer science?

The university solved slips for third year Bsc Computer Science are usually issued after the students satisfy the conditions set out by the examination body. The students also have to meet the conditions set out by the senate.


Calculate the average daily balance and finance charge?

Calculate the average balance and finance charge


How do you calculate the average car weight based on engine cc?

how calculate average from engine displacement in cc


How to calculate average change IN INVENTORY?

You calculate average change in inventory by dividing the turnover by how many times it has turned over. The number you get is the average.


How do you calculate average constituency?

15475 =29% how would I calculate the average constituency for a state using the hamilton method?


How do universities calculate the comulative average of a student?

Most universities calculate the average of the first and second cumulative average at the end of every academic year.