Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-sv6ng Total loading time: 0 Render date: 2024-08-17T07:25:32.270Z Has data issue: false hasContentIssue false

29 - Scheduling: Non-Preemptive, Non-Size-Based Policies

from VII - Smart Scheduling in the M/G/1

Published online by Cambridge University Press:  05 February 2013

Mor Harchol-Balter
Affiliation:
Carnegie Mellon University, Pennsylvania
Get access

Summary

This chapter and all the remaining chapters focus on scheduling for the case of an M/G/1 queue. We always assume ρ < 1 and that G is continuous with finite mean and finite variance. Every scheduling policywe consider iswork-conserving (i.e., whenever there is a job to be worked on, some job will receive service).

Definition 29.1 A non-preemptive service order is one that does not preempt a job once it starts service (i.e., each job is run to completion).

This chapter focuses on non-preemptive scheduling policies that do not make use of knowing a job's size.

FCFS, LCFS, and RANDOM

The following three non-preemptive policies do not assume knowledge of job size:

FCFS: When the server frees up, it always chooses the job at the head of the queue to be served and runs that job to completion.

LCFS (non-preemptive): When the server frees up, it always chooses the last job to arrive and runs that job to completion.

RANDOM: When the server frees up, it chooses a random job to run next.

Question: When would one use LCFS?

Answer: Consider the situation where arriving jobs get pushed on a stack, and therefore it is easiest to access the job that arrived last (e.g., the task at the top of the pile on my desk!).

Question: Which of these three non-preemptive policies do you think has the lowest mean response time?

Answer: It seems like FCFS should have the best mean response time because jobs are serviced most closely to the time they arrive, whereas LCFS may make a job wait a very long time. However, surprisingly, it turns out that all three policies have exactly the same mean response time. In fact, an even stronger statement can be made.

Type
Chapter
Information
Performance Modeling and Design of Computer Systems
Queueing Theory in Action
, pp. 478 - 481
Publisher: Cambridge University Press
Print publication year: 2013

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×