Skip to content

Multitasking

Category: Foundations · Status: stub

One line: An operating system or runtime running several tasks over the same period by switching between them — by force (preemptive) or when a task gives way (cooperative).

How it connects

flowchart LR
  n_context_switch["Context switch"]
  n_multitasking["Multitasking"]
  n_multitasking -->|uses| n_context_switch
  classDef center stroke-width:3px
  class n_multitasking center
  classDef outside stroke-dasharray: 4 3
  class n_context_switch outside

In each language

The operating system sched(7): Linux decides which thread runs next by scheduling policy and priority, and preempts the one running

Where to read more