Nepedia
Back to Discover
Fluent Reader
💻

Computer multitasking

technology Maturity 9-11 Next article →

Multitasking is a way for a computer to work on many tasks at the same time. These tasks are often called processes. Even though it looks like everything is happening at once, the computer is actually doing something clever. It executes small segments of different tasks in an interleaved manner. This means it switches between them very quickly. The computer shares its main resources, like the central processing unit (CPU) and main memory, among all these jobs. This allows the computer to be much more efficient.

Fedora Linux multitasking
Fedora Linux multitasking

To make this work, the computer performs a context switch. This is a step-by-step way to change which program is running. First, the system interrupts the current program. It saves the state of that program, including its memory and partial results. Then, it loads the saved state of a new program. This transfers control to the next task. There are two main ways this happens. In cooperative multitasking, a program is coded to signal when it can be interrupted. In preemptive multitasking, the system interrupts the program at fixed time intervals.

Microsoft Windows 1.01 multitasking
Microsoft Windows 1.01 multitasking

Computers have used these ideas for a long time. Multitasking has been a common feature since at least the 1960s. Early computers used a technique called multiprogramming to keep the CPU busy. The Bull Gamma 60 was the first computer designed with multiprogramming in mind. It was designed in 1957 and released in 1960. Another early computer was the LEO III, which came out in 1961. These machines helped reduce wait times when many different programs were being processed.

Kubuntu 21.04 (KDE Plasma 5) - Virtual Desktops
Kubuntu 21.04 (KDE Plasma 5) - Virtual Desktops

Different systems handle these tasks in different ways. Preemptive multitasking was used in the PDP-6 Monitor and Multics in 1964. It was also used in Unix in 1969. For home users, Microware's OS-9 was one of the earliest versions available. Later, the Commodore Amiga was released in 1985 with multitasking features. Microsoft made preemptive multitasking a core part of Windows in the early 1990s. They did this while developing Windows NT 3.1 and Windows 95.

Microsoft Windows 1.01 multitasking
Microsoft Windows 1.01 multitasking

Multitasking is also used in special real-time systems. These systems might control industrial robots. A single processor might share its time between moving a machine and talking to a user. Some tasks are even broken into smaller parts called threads. Threads are like lightweight processes that share the same memory. This makes it easier for them to exchange data. This whole system works because of memory protection. This ensures that one task cannot accidentally change the memory of another task.

Fedora Linux multitasking
Fedora Linux multitasking
418 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Fedora Linux multitasking.png
Fedora Linux multitasking.png
File:Microsoft_Windows_1.01_multitasking.png
Microsoft_Windows_1.01_multitasking.png
File:Kubuntu_21.04_(KDE_Plasma_5)_-_Virtual_Desktops.png
Kubuntu_21.04_(KDE_Plasma_5)_-_Virtual_Des...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.