UNIT 2 • MODULE 3 • LESSON 02
The first electronic computers had no operating system at all. A programmer booked the machine for an hour, walked into the computer room, loaded a program by hand with switches or punched cards, and watched the lights. If the program finished in ten minutes, the expensive machine sat idle for the other fifty. Every big idea in operating systems since then has been an answer to one question: how do we keep the computer busy and useful for more people?
This lesson follows that story, from simple batch systems to the multi-user and multi-processor systems we use today. Each new type solved a problem left by the one before. Knowing the problem each one solved is the easiest way to remember them, and it is exactly what exam questions on this topic ask you to describe.
What you will learn
- How early computers were used with no operating system.
- Batch processing: what it is, why it was introduced and its weakness.
- Multiprogramming, and interactive multiprogramming (time-sharing).
- Multi-user systems and how they keep users apart.
- Multiprocessing: more than one processor in one computer.
- Real-time systems and why they need guaranteed response times.
- How to choose the right type for a given situation.
Part 1: Before operating systems
In the late 1940s and early 1950s, each user had the whole machine to themselves for a booked slot. Setting up took a long time: mount the tapes, load the compiler, load the program, run it, collect the printout. The processor was idle for most of that set-up time, and processor time was extremely expensive. This “open shop” approach is sometimes called serial processing, because users took turns one after another.
Part 2: Batch processing
The first fix was to stop people touching the machine. Users handed their programs and data (a job) to an operator. The operator grouped similar jobs into a batch, and a small resident program called a monitor loaded and ran the jobs one after the other, with no human stepping in between. Instructions to the monitor were written in a job control language: which compiler to use, which files to read, how long the job may run.
| Feature | Batch processing |
| How jobs run | Collected in groups and run one after another without user interaction |
| User contact | None while the job runs; results come back later as a printout or a file |
| Main gain | Much less idle time between jobs; the operator does the set-up once per batch |
| Main weakness | Only one job is in memory, so the CPU waits whenever that job does input or output |
| Still used today | Payroll runs, monthly bank statements, utility bills, overnight backups, exam result processing |
Batch processing is still the right choice when a large amount of similar data must be processed and nobody needs an instant answer. A utility company prints thousands of bills at the end of the month: it collects the meter readings during the month and processes them together overnight.
The weakness is subtle but important. Reading a card or writing to a tape is thousands of times slower than the processor. While the one job in memory waits for its input or output to finish, the processor has nothing to do.
Part 3: Multiprogramming
Multiprogramming keeps several jobs in main memory at the same time. Memory is divided into areas, one per job. When the running job has to wait for input or output, the operating system switches the processor to another job that is ready to run. The processor is kept busy, so more jobs are finished per hour (higher throughput).
Notice what multiprogramming does not mean. There is still one processor, and it runs only one job at any instant. The jobs take turns, switching whenever one has to wait. To make this possible, the OS needed new abilities: memory management (to keep jobs in separate areas), processor scheduling (to choose the next job) and interrupts (so a device can tell the OS that its I/O has finished). Those are the subjects of Lessons 03 to 05.
Try the simulator. Three jobs need the processor (C) and some need input/output (I). Job A needs 3 ticks of CPU, then waits 4 ticks for I/O, then needs 2 more ticks of CPU. Job B needs 2 CPU, 3 I/O, 2 CPU. Job C needs 4 CPU only. Run both modes and compare.
Try it 1Batch vs multiprogramming: keep the CPU busy
Each box is one tick of processor time. A coloured box shows which job is using the CPU. A grey dot means the CPU is idle.
Which mode finishes all three jobs sooner?
In batch mode the CPU is idle for 7 of the 20 ticks (65% busy). With multiprogramming, B and C fill the gaps while A and B wait, so all three jobs finish at tick 13 with the CPU busy the whole time. Same hardware, same jobs, a much better result: that is why multiprogramming was such a big step.
Interactive multiprogramming (time-sharing)
Batch multiprogramming kept the processor busy, but users still waited hours for results and could not fix a mistake mid-run. Interactive multiprogramming, usually called time-sharing, connected many terminals to one computer. The OS gave each user’s program a very short slice of processor time (a few milliseconds) in turn. Because the slices are so short and come round so often, every user feels they have the machine to themselves and gets a reply in a second or two.
The difference is the goal. Batch multiprogramming aims for high throughput (as many jobs finished as possible). Time-sharing aims for short response time (each person sees a quick reply). The round-robin scheduling you will meet in Lesson 04 grew out of time-sharing.
Part 4: Multi-user systems
A multi-user operating system lets many people use one computer’s resources at the same time, each through their own terminal or remote connection. Time-sharing makes it possible, but a multi-user OS must also keep users apart: each has a user ID and password, their own files and permissions, and their own share of memory and processor time. One user’s program crashing or misbehaving must not damage another user’s work.
Today a web server or a university’s Linux server is multi-user: hundreds of people are logged in or served at once. A typical home laptop can hold several user accounts but is usually used by one person at a time; it is multitasking (many programs for one user) rather than truly multi-user.
Part 5: Multiprocessing
Multiprocessing means a single computer has two or more processors (or processor cores) that share memory and devices, so that several processes really do run at the same instant. Compare it carefully with multiprogramming:
| Multiprogramming | Multiprocessing | |
| Processors | One | Two or more |
| At any instant | Only one job runs; others wait their turn | Several jobs run truly in parallel |
| Main idea | Switch to another job when one waits | Share the work among processors |
| Benefit | CPU is not left idle during I/O | More work done per second; if one processor fails, others may continue |
Most phones and laptops today are multiprocessing (multi-core) and multiprogramming at the same time: each core switches among many processes. See Processor Performance: Clock Speed, Cache, GPUs and Multi-Core for how cores are built.
Part 6: Real-time systems
A real-time system must respond to input within a fixed, guaranteed time, because the outside world will not wait. An airbag controller must react within milliseconds of a crash being detected. A heart monitor must sound an alarm as soon as the reading is dangerous. A traffic-light controller must change lights on time. The OS for such systems puts predictability first: a response that is correct but late counts as a failure.
Textbooks split them into hard real-time (missing a deadline is a disaster: aircraft controls, pacemakers) and soft real-time (missing a deadline lowers quality: a video call that stutters). Online booking systems are sometimes called real-time because records are updated immediately, which is different from batch processing where updates wait for the next run.
| Type | Key idea | Example |
| Batch | Jobs grouped and run without user interaction | Monthly electricity bills |
| Multiprogramming | Several jobs in memory; switch when one waits | A mainframe running many jobs |
| Interactive (time-sharing) | Short time slices give each user a quick response | Many terminals on one server |
| Multi-user | Many users at once, kept separate and secure | A web or school server |
| Multiprocessing | Two or more processors run in parallel | A quad-core laptop |
| Real-time | Guaranteed response within a deadline | Airbag or pacemaker controller |
Try it 2Which type of operating system fits?
Read each situation and choose the type of system it describes or needs. Ten items.
Part 7: Common mistakes
- Mixing up multiprogramming and multiprocessing. Multiprogramming: one processor, many jobs taking turns. Multiprocessing: many processors.
- Saying batch means "fast". Batch improves use of the machine, but each user waits a long time for results.
- Saying real-time means "very fast". It means guaranteed on time. A real-time system can be slow, as long as it always meets its deadline.
- Describing a type without its purpose. In a "describe" question, state what the type does and what problem it solved or what it is good for.
Try it 3Types of OS drill
Pick a mode. "Match" gives a description and asks for the type. "Compare" checks the key differences.
Summary
| Era | Problem solved |
| No OS (serial) | None yet: much idle time during set-up |
| Batch | Removed set-up time between jobs |
| Multiprogramming | Removed CPU idle time while a job waits for I/O |
| Time-sharing | Gave each user a quick, interactive response |
| Multi-user | Let many users share safely, each with their own account and files |
| Multiprocessing | More processing power, true parallel work, some fault tolerance |
| Real-time | Guaranteed response within a deadline |
Review questions
1. Describe batch processing and give one current use.
Show answer
Jobs are collected into groups and run one after another by the OS without user interaction; results are returned later. Current use: payroll, utility bills or overnight backups.
2. Explain why the processor was often idle in a simple batch system.
Show answer
Only one job was in memory. When that job performed slow input or output, the processor had nothing else to run and had to wait.
3. Describe multiprogramming and state its main benefit.
Show answer
Several jobs are kept in memory at once. When the running job waits for I/O, the OS switches the CPU to another ready job. Benefit: the CPU is kept busy, so throughput increases.
4. Distinguish between multiprogramming and multiprocessing.
Show answer
Multiprogramming uses one processor shared by several jobs that take turns. Multiprocessing uses two or more processors so several jobs run at the same instant.
5. Explain what is meant by interactive multiprogramming (time-sharing).
Show answer
Many users interact with the computer through terminals. Each user’s program gets a short slice of processor time in turn, so each receives a quick response and feels they have the machine to themselves.
6. Describe a multi-user operating system and one feature it must have.
Show answer
It allows many users to use the computer’s resources at the same time. It must keep users separate, for example with user IDs, passwords and file permissions.
7. What is a real-time system? Give two examples.
Show answer
A system that must respond to inputs within a guaranteed time limit. Examples: an airbag controller, a pacemaker, an industrial robot, a traffic-light controller.
8. In the Try it, why did multiprogramming finish all jobs sooner?
Show answer
While job A (and later B) waited for I/O, the CPU ran other ready jobs, so there were no idle ticks. Total time fell from 20 to 13.
Homework
- Draw a timeline (like the simulator) for two jobs: P needs CPU 2, I/O 3, CPU 2; Q needs CPU 3. Do it for batch and for multiprogramming. Give the finishing time and CPU use for each.
- Make a table of the six types in this lesson listing a strength and a weakness for each type.
- Find out whether your phone is multiprocessing. How many cores does it have?
- Write a paragraph explaining why a pacemaker needs a real-time system but a payroll system does not.
Mastery quiz: How Operating Systems Evolved
This 10-question quiz is separate from the short Quick quiz at the end of the lesson. Score 8/10 or higher to earn this lesson’s badge. Your best score is saved in this browser on this device.
Mastery quiz: How Operating Systems Evolved: From Batch Jobs to Multi-User Systems
Your course badges: loading saved progress…
View badges
No course badges earned yet. Score 8/10 in a lesson quiz to earn its badge.
Saved in this browser on this device. Clearing browser data may remove your badges.
Answer all 10 questions. Earn this lesson’s badge at 8/10 or higher. Read the explanations, revisit the Try it activities and retry as often as you need. These are self-study badges, not formal grades.
Exam tips
Specimen Unit 2 Paper 02 (2021), Question 5(a). You are asked to briefly describe two of three early types of operating system. For each one, give a two-part answer: what it does and why it mattered (for example, "several jobs are in memory and the CPU switches when one waits for I/O, so throughput rises"). Two marks per type is a good guide to the length needed.
Specimen Unit 2 Paper 01 (2021), Item 44. Read the stem for the key idea: "immediate results" points to real-time; "grouped" or "later" points to batch. Eliminate types that are about processors or location rather than timing.
Compare questions. When asked to distinguish two types, write one sentence about each in matching form, as in the multiprogramming vs multiprocessing table. Examiners look for the contrast, not two unrelated definitions.
More worked answers are on the CS Solutions page.
Previous: Unit 2 • Module 3 • Lesson 01 – What an Operating System Is, and What It Is For. Next: Unit 2 • Module 3 • Lesson 03 – Processes: States, the Process Control Block and Interrupts.
Syllabus link: CAPE Computer Science (CXC A19/U2/21), Operating Systems and Computer Networks (Unit 2, Module 3). Specific Objective 2: describe how operating systems have evolved over time from primitive batch systems to sophisticated multi-user systems (history; batch processing; real-time systems; multiprogramming, including interactive multiprogramming; multiprocessing).
Video search terms
Search YouTube for: "history of operating systems batch multiprogramming time sharing", "multiprogramming vs multiprocessing", "real-time operating system explained".
Try it 4Quick quiz
Tap an answer. All eight questions are self-checks on this lesson.
Updates
2026/12/01
- First version of the lesson.
© 2026 islandclass.org
