{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Scheduling Policies for Preemptive Scheduling

Scheduling Policies for Preemptive Scheduling - Scheduling...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Scheduling Policies for Preemptive Scheduling Two policies: Round Robin Multilevel Feedback-Queue Scheduling Round Robin Ready processes are in a queue. Every time that a time quantum expires, a process is dequeued from the front of the queue and put in running state The previous running process is added to the end of the queue.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Round Robin Round Robin (cont.) (T=10ms) Process Burst Time p1 24ms p2 3ms p3 3ms 3 10 P3 P1 P2 Average completion time = (13+16+30)/3=19.6ms 3 P1 10 P1 4
Image of page 2
Quantum Length Analysis What is the impact of quantum length? Assume T=10ms. Process Burst Time p1 20ms p2 1ms p3 1ms 1 10 P3 P1 P2 Average completion time = (11+12+22)/3=15ms 1 P1 10
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Quantum Length Analysis What if we choose a smaller quantum length?Assume T=1ms. Process Burst Time p1 20ms p2 1ms p3 1ms 1 1 P3 P1 P2 Average completion time = (2+3+22)/3=9ms 1 P1 T=1ms P1 1 1 P1 P1 1 1
Image of page 4
Quantum Length Analysis The shorter the quantum, the shorter the average completion time.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern