IB Computer Science · A1 · Computer fundamentals
A1.3 Operating and control systems
Describe the main functions of an operating system, explain how it manages hardware and software, and outline how control systems use sensors, processors and feedback.
1/5An operating system sits between users, software and hardware
- An operating system sits between users, software and hardware
- The operating system shares the CPU between processes
- The operating system manages memory, files and devices
- A control system uses sensors, a processor and actuators
- Feedback lets a control system correct itself
- Check your recall
- Practice: 10 questions
Part 1 of 5: An operating system sits between users, software and hardware
Think of a school office that connects students, teachers and rooms. An operating system (OS) does a similar job for a computer. It is system software that manages the hardware and provides services to programs.
A program that helps the user do a task, such as writing a document, is application software. Applications do not control the hardware directly. They ask the operating system to do it for them.
Key terms · tap one for its definition
operating system
An operating system is system software that manages computer hardware, memory and processes and provides services to application programs.
application software
Application software is a program designed to help a user carry out a specific task rather than manage the computer itself.
Part 2 of 5: The operating system shares the CPU between processes
A computer often seems to run many programs at once. A process is a program that is being run. A single CPU core can work on only one process at a time.
The operating system therefore switches between processes very rapidly. Each one gets a short turn, so all of them appear to make progress. Choosing which process runs next, and for how long, is scheduling.
Sometimes a device needs attention at once, such as a key being pressed. It sends an interrupt, a signal that makes the CPU pause its current task. The operating system handles the event, and the CPU then resumes the paused task.
Key terms · tap one for its definition
process
A process is a program in execution, together with the resources, such as memory, that the operating system has given it.
scheduling
Scheduling is the operating system’s method of deciding which process uses the CPU next and for how long.
interrupt
An interrupt is a signal to the CPU that an event needs immediate attention, causing it to pause its current task.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: The operating system manages memory, files and devices
Running processes need more than CPU time. The operating system manages the other resources they use.
- Memory management: it gives each process some RAM and keeps one process out of another’s memory.
- File management: it organises files in folders and controls who may open them.
- Device management: it sends data to devices using a device driver for each one.
- Security: it uses accounts and permissions to limit access.
- User interface: it gives the user a user interface to enter commands and see results.
Applications use all of these services through the operating system.
Key terms · tap one for its definition
device driver
A device driver is software that lets the operating system communicate with and control a particular hardware device.
user interface
The user interface is the part of a system through which a user gives commands and receives output.
Part 4 of 5: A control system uses sensors, a processor and actuators
Operating systems manage computers, but many devices have no keyboard at all. Examples are a washing machine, a central heating unit or a car’s cruise control. A control system monitors a situation and adjusts something to reach a goal.
A sensor measures a physical quantity, such as temperature, light or speed. A processor uses that data to make a decision. An actuator then carries out the decision, for example by turning a motor or opening a valve.
Key terms · tap one for its definition
control system
A control system is a set of components that uses sensor data and a processor to adjust an actuator and reach a desired state.
sensor
A sensor is a device that measures a physical quantity and converts it into data that a processor can use.
actuator
An actuator is a device that converts a processor’s signal into physical action, such as movement or heat.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 5: Feedback lets a control system correct itself
A thermostat shows how this works. The target is a room temperature of 21 °C. A sensor sends each reading to a microcontroller, a small computer on one chip that runs the control program.
If the reading is below 21 °C, the microcontroller switches the heater on. When the reading reaches 21 °C, it switches the heater off. The new temperature is measured again and passed back as feedback.
Feedback lets the system keep correcting itself without a person. If the sensor gives false readings, the correction fails.
Key terms · tap one for its definition
microcontroller
A microcontroller is a small computer on a single chip, containing a processor, memory and input and output connections, used to control a device.
feedback
Feedback is the return of a system’s measured output to its input so that the system can adjust its next action.
Check your recall[15 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Define[2 marks]
Define the term operating system.
Show mark schemeHide mark scheme
Model answer
An operating system is system software that manages the computer’s hardware and provides services to application programs.
- 1 mark for stating that it is system software that manages the hardware
- 1 mark for stating that it provides services to application programs
- 2.Outline[4 marks]
Outline two functions of an operating system.
Show mark schemeHide mark scheme
Model answer
Memory management gives each process some RAM and keeps processes apart. File management organises files in folders and controls who may open them. (Other correct functions: device management, security, user interface, scheduling.)
- 1 mark for stating a first function
- 1 mark for outlining what that function does
- 1 mark for stating a second function
- 1 mark for outlining what that function does
- 3.Explain[3 marks]
Explain how an operating system lets several programs appear to run at the same time.
Show mark schemeHide mark scheme
Model answer
A CPU core can run only one process at a time. The operating system switches between processes very rapidly, giving each a short turn. Scheduling decides which process runs next and for how long, so all appear to progress.
- 1 mark for stating that a CPU core can run only one process at a time
- 1 mark for stating that the operating system switches rapidly between processes
- 1 mark for linking scheduling to deciding which process runs and for how long
- 4.Describe[2 marks]
Describe the roles of a sensor and an actuator in a control system.
Show mark schemeHide mark scheme
Model answer
A sensor measures a physical quantity, such as temperature, and sends the data to the processor. An actuator carries out the processor’s decision as a physical action, such as turning a motor.
- 1 mark for stating that a sensor measures a physical quantity and provides data
- 1 mark for stating that an actuator carries out a physical action as the processor decides
- 5.Explain[3 marks]
Explain how feedback allows a heating control system to keep a room near a set temperature.
Show mark schemeHide mark scheme
Model answer
The sensor measures the room temperature and the microcontroller compares it with the target. It switches the heater on or off as needed. The new temperature is measured again, so the system keeps correcting itself.
- 1 mark for stating that the sensor measures the temperature and the microcontroller compares it with the target
- 1 mark for stating that the heater is switched on or off in response
- 1 mark for explaining that the new temperature is measured again and passed back, so the system keeps correcting itself
- 6.State[1 mark]
State the purpose of a device driver.
Show mark schemeHide mark scheme
Model answer
It lets the operating system communicate with and control a particular hardware device.
- 1 mark for stating that it lets the operating system communicate with or control a hardware device

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyState[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumPredict[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: B · Worked explanation
HardDeduce[2 marks]
Show answer and explanation
Answer: A · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardPredict[2 marks]
Show answer and explanation
Answer: A · Worked explanation