1.5.1 Operating systems
Every computer, tablet and phone needs an operating system. Without one, the hardware could not run any programs, and the user would have no way to use the machine.
An operating system is system software. Applications such as a word processor or a game need the operating system to be running first. The OS has five main jobs, which you need to know.
- 1.Provide a user interface
- 2.Manage memory and allow multitasking
- 3.Manage peripherals, using drivers
- 4.Manage users
- 5.Manage files
User interface
Most computers use a graphical user interface (GUI). A GUI has these features:
- •Windows: each program runs in its own box that can be moved and resized.
- •Icons: small pictures that stand for programs, files and folders.
- •Menus: lists of choices, such as File and Edit.
- •Pointer: an arrow that you move with a mouse, a trackpad or your finger.
Memory management and multitasking
Programs and data are kept on secondary storage, such as a hard drive or SSD. To run a program, its instructions and data must be transferred from secondary storage into RAM, where the processor can use them. When a program is closed, the OS releases the space it was using so that it can be used again.
The operating system also allocates (gives out) a part of memory to each application that is running. This is important for two reasons:
- •Each application has its own space, so one program cannot overwrite the data of another.
- •It makes sure the space is used efficiently, so that as many programs as possible can be kept in memory.
Multitasking
You can listen to music, download a file and type an essay at once. A processor can only work on one task at a time, but it can switch between tasks so quickly that they all seem to run together. For this to work, the OS must keep every program that is open in memory at the same time, and keep their data separate.
You do not need to know how the operating system decides which program goes next, or how memory is split up.
Peripheral management and drivers
Data has to move between each peripheral and the processor. Input devices send data in, and output devices receive data from the computer. Every device works in a different way, and they work at different speeds, so this movement must be managed. The operating system controls how the data moves, and makes sure that the devices do not get in each other's way. For example, it can store the data waiting to be printed so that the user can carry on working.
Device drivers
Each type of device needs its own driver. The driver translates the instructions from the operating system into commands that the device understands. When you plug in a new printer, the OS needs the correct driver for that printer. Many are installed automatically. If the driver is missing or out of date, the device may not work properly.
User management
Computers shared by many people, such as in a school, need separate user accounts. Each person has a username and a password to log in. User management lets the OS:
- •create and delete accounts
- •keep each user's files and settings separate (so each user sees their own desktop)
- •set access rights, which decide which files and settings each user can open, change or delete
- •protect the computer from unauthorised use, because only people with a valid login can get in
File management
The OS provides tools to work with files. A user can:
- •name a file (and rename it later)
- •save a file onto storage, and open it again
- •create folders (directories) and put files in them, so they can be organised and found
- •move and copy files between folders and drives
- •delete files
- •search for a file by name or type
Summary
| Function | What the OS does |
|---|---|
| User interface | Lets the user communicate with the computer (windows, icons, menus, pointer) |
| Memory management | Moves programs into RAM, gives each its own space, frees space after use |
| Multitasking | Keeps several programs in memory so the processor can switch between them |
| Peripheral management | Controls data moving between devices and the processor, using drivers |
| User management | Accounts, logins, access rights and security |
| File management | Naming, saving, folders, moving and deleting files |
Exam technique
- •State or give: a short fact, such as one function of an operating system.
- •Describe: say what the function does. "The OS allocates a part of memory to each program that is running."
- •Explain: give a reason. "Drivers are needed because each device works differently, and the OS cannot control it without one."
- •Make sure you answer about the operating system, not about an application. Do not say "it saves your work": the application does that, and the OS manages the file.
- •Do not describe paging, segmentation or how tasks are scheduled. These are not needed.