IT lexicon › Programming › Least laxity first (LLF)

Least laxity first (LLF)

Programming På svenska → Updated: 2026-11-04

Dynamic scheduling that always runs the task with the least slack left: time to deadline minus remaining execution time.

Laxity, or slack, is how long a task can wait and still make it. Aloysius Mok proved in 1983 that the policy is optimal on a single processor, just like EDF. Its advantage only shows on multiple cores and under overload, where it notices sooner that something is about to go wrong.

The cost keeps it mostly in textbooks. The scheduler has to know how much work each task has left, which is rarely measurable. And when two tasks tie on laxity, the running one's slack shrinks more slowly than the waiting one's, so they swap places on every tick — a context-switch storm known as thrashing. Practical variants therefore add a threshold before they switch.

← Back to the lexicon