ArticleslgStudy

science

Work-conserving scheduler

Work-conserving scheduler is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Work-conserving scheduler rather than just read about it. In short: In computing and communication systems, a work-conserving scheduler is a scheduler that always tries to keep the scheduled resource(s) busy, if there are submitted jobs ready to be scheduled. In contrast, a non-work-conserving scheduler is a scheduler that, in some cases, may leave the scheduled resource(s) idle despite the presence of jobs ready to be scheduled.

Key takeaways

  • Work-conserving scheduler belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Work-conserving scheduler to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Work-conserving scheduler from memory before moving on to harder problems.

Reference excerpt

In computing and communication systems, a work-conserving scheduler is a scheduler that always tries to keep the scheduled resource(s) busy, if there are submitted jobs ready to be scheduled. In contrast, a non-work-conserving scheduler is a scheduler that, in some cases, may leave the scheduled resource(s) idle despite the presence of jobs ready to be scheduled. For example, when dealing with networking and packet scheduling, a work-conserving scheduler leaves the channel idle only when there are no packets to transmit. In contrast, a non-work-conserving scheduler might leave the channel idle with packets still pending transmission. Similarly, when referring to CPU scheduling, i.e. threads or processes scheduled over one or more available processors or cores, a work-conserving scheduler ensures that processors/cores are not idle if there are processes/threads ready for execution.

Kleinrock's Conservation Law Work-conserving schedulers are also notable for obeying Kleinrock's Conservation Law. In the context where we have N connections with Poisson-distributed arrival rates λn packets per unit time each competing for scheduling time, Leonard Kleinrock established the following conservation law: ∑n=1Nρnqn=C where ρn=λnμn

λn: The mean packet rate of connection n in packets per unit time. μn: The number of packets of connection n that the system overall could transmit per unit time, in units of packets. This can vary between flows if flows have differently sized packets. ρn: The link utilization contributed by a particular flow. qn: The expected time a packet from connection n sits in a buffer before the scheduler serves it in units of time. C: A constant - the expected time to clear out all buffered packets from all flows at any given point in time if they are transmitted at maximum service rate with no breaks. To understand why, observe that ρnqn=λnqnμn. Notice that λnqn is the expected number of buffered packets from flow n, and therefore the expected time to clear them from the buffer is this over the service rate μn. (Some sources use μn to mean the time to service a particular packet with units of unit time per packet, and use ρn=λnμn. The equation is the same, the only difference being their μn is the reciprocal of the one presented above.)

Comparison to Non-Work-Conserving Schedulers Non-work-conserving schedulers are sometimes useful to enhance predictability and reduce termination jitter for the activities carried out by a computing and communication system. In multi-processor systems they're useful to enhance performance in some scenarios.

Sometimes, a non-work-conserving scheduler may be useful to enhance stability of a system; For example, a process scheduler may choose to keep processes off of the run queue if there were concern that the sum of the working sets of all of the runnable processes would exceed available memory and lead to non-linear page thrashing overhead. Limiting the run queue in this manner might lead to under-utilization of available processors (and hence be non-work-conserving) with the goal of avoiding situations where the system is unusable due to thrashing.

References

Worked examples

Example 1 — a first encounter with Work-conserving scheduler

Start with the simplest possible case. Write down what Work-conserving scheduler claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Work-conserving scheduler before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Work-conserving scheduler ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Work-conserving scheduler

In research
Work-conserving scheduler appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Work-conserving scheduler in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Work-conserving scheduler is common in secondary-school and first-year university syllabi. It links to neighbouring topics Job scheduling, so understanding it makes those chapters shorter.
In everyday life
Look for Work-conserving scheduler outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Work-conserving scheduler” →

How to study Work-conserving scheduler in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Work-conserving scheduler means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Work-conserving scheduler out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Work-conserving scheduler in simple terms?

In computing and communication systems, a work-conserving scheduler is a scheduler that always tries to keep the scheduled resource(s) busy, if there are submitted jobs ready to be scheduled. In contrast, a non-work-conserving scheduler is a scheduler that, in some cases, may leave the scheduled re…

Why does Work-conserving scheduler matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Work-conserving scheduler?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Work-conserving scheduler.

Tags

  • Job scheduling

Keep exploring