Skip to content

Time-sharing

Sharing finite processor time by alternating execution intervals among runnable tasks or users.

Version
v1 · 2026-09-28 · History
Domain-specific #
12560
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Operating System Scheduling, History of Computing → Computer Science & Software Engineering
Aliases
CPU time-sharing, Processor time-sharing

Core Idea

Computing time-sharing divides a finite processor's service into alternating periods assigned to multiple runnable tasks or users. A scheduler chooses what runs next, and saved context lets the displaced task continue later. A person at a terminal can therefore receive frequent responses even though, on a single execution unit, the machine is executing only one instruction stream at a time. The identity is alternating, state-preserving use of CPU time—not merely common ownership of hardware.

MIT's Compatible Time-Sharing System provided a concrete early multi-user interactive implementation. Linux documentation describes a modern scheduler tick supporting approximate task time slices, subject to scheduling class and priority. The two implementations differ in policy and hardware, but both preserve the limited-resource, temporal-assignment and resumption relation. Multicore parallelism may coexist with time-sharing without being identical to it.

How would you explain it like I'm…

Taking Turns on the Computer

Imagine one swing and lots of kids. Each kid gets a short turn, then the next, then the next, so fast that everyone feels like they're swinging a lot. Time-sharing is when a computer gives tiny turns to many jobs, and remembers where each one stopped so it can pick up again.

Computer Taking Turns

A computer's processor can only do one thing at a time on each part that runs instructions. Time-sharing lets many programs or people use it by giving each one a short turn, then switching to the next. A part of the computer called the scheduler decides who goes next. Before switching, the computer saves where each job left off, so it can continue later. The turns switch so fast that a person typing gets quick answers, as if they had the computer to themselves.

CPU Time-Sharing

Time-sharing is a way of dividing a processor's time into short alternating periods given to several tasks or users. A scheduler chooses what runs next, and the computer saves each task's state, its 'context,' so a task that's paused can pick up exactly where it left off. Because the switching is frequent, a person at a terminal gets quick responses, even though a single processor core runs only one stream of instructions at a time. MIT's Compatible Time-Sharing System was an early multi-user example, and modern Linux uses a regular timer 'tick' to give tasks approximate time slices based on priority. Time-sharing is about taking turns with saved state, not just several people owning the same machine, and it's different from running things truly in parallel on multiple cores, though both can happen together.

 

Time-sharing divides a finite processor's service into alternating periods allocated among multiple runnable tasks or users. A scheduler selects what runs next, and saved execution context lets a displaced task resume later. As a result, an interactive user at a terminal can receive frequent responses even though a single execution unit runs only one instruction stream at a time. The identity is alternating, state-preserving use of CPU time — not mere shared ownership of hardware. MIT's Compatible Time-Sharing System was an early concrete multi-user interactive implementation, while modern Linux documentation describes a scheduler tick supporting approximate task time slices, subject to scheduling class and priority. Though their policies and hardware differ, both preserve the relation of a limited resource, temporal assignment and resumption. Multicore parallelism can coexist with time-sharing but is not the same thing.

Scope of Application

Rapid switching on one execution unit is distinct from simultaneous execution across cores.

  • Operating systems. Schedule runnable tasks on processors.
  • Interactive computing. Support responsive access from several users.
  • Resource management. Compare priorities, fairness and throughput.
  • Computing history. Distinguish CTSS-style service from earlier batch use.

Clarity

CPU time-sharing assigns short execution turns to competing tasks and preserves their state between turns. CTSS gave interactive access to multiple users; Linux documents approximate scheduler slices. A batch queue or multiple dedicated cores may share a machine or workload, but neither alone establishes this alternating mechanism.

Manages Complexity

The slice length and dispatch policy affect response, fairness and overhead. A task may block for I/O or be governed by a special scheduling class, so no one uniform fixed quantum describes every implementation. Multicore machines can combine actual parallel execution across cores with time-sharing on each core. State preservation is necessary for coherent continuation.

Abstract Reasoning

Identify finite CPU service and runnable claimants, schedule turns, preserve context at switches, resume tasks, and evaluate responsiveness and overhead under the actual policy.

Knowledge Transfer

Temporal sharing of a finite resource appears in communications and infrastructure, but computing time-sharing specifically alternates CPU execution among task contexts. A radio time-division channel or shared classroom schedule is structurally analogous without being an operating-system instance.

Relationships to Other Abstractions

Local relationship map for Time-sharingParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Time-sharingDOMAINPrime abstraction: Allocation — is a kind ofAllocationPRIME

Current abstraction Time-sharing Domain-specific

Parents (1) — outgoing typed relations

  • Time-sharing is a kind of Allocation Prime

    CPU time slices assign finite processor service among competing runnable tasks.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Time-sharing sits in a crowded region of the domain-specific corpus (30th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Queueing, Networks & Concurrent Systems (9 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14