Detailed · Deep study
1System software and application software
Software that provides the services that the computer requires, such as the operating system and utility software.
Software that provides the services that the user requires, to carry out a task.
| Type | Examples |
|---|---|
| operating system | Windows, macOS, Linux, Android, iOS |
| utility software | antivirus, firewall, disk defragmenter, backup, file compression, disk formatter |
| application software | word processor, spreadsheet, database, web browser, photo/video editor, game |
2The operating system
| Function | What the OS does |
|---|---|
| managing files | creates, opens, saves, copies, moves, renames and deletes files and folders |
| handling interrupts | detects interrupt signals and runs the correct interrupt service routine |
| providing an interface | a graphical user interface (GUI) or command line interface (CLI) for the user |
| managing peripherals and drivers | communicates with devices such as printers and keyboards, using driver software |
| managing memory | decides which data and programs are in RAM, and where; prevents programs using each other's memory |
| managing multitasking | shares the CPU time between processes so several seem to run at once |
| providing a platform for running applications | applications use the OS to access hardware and other services |
| providing system security | passwords, access rights, firewall, updates |
| managing user accounts | separate accounts with their own files, settings and permissions |
3Hardware, firmware and the operating system
To run applications software, three things are needed. The hardware is the physical computer. Firmware is software stored permanently in ROM; the bootloader runs on the hardware when the computer is switched on and loads the operating system from secondary storage into RAM. The operating system then runs on the firmware, and applications run on the operating system.
4Interrupts
A signal sent from a device or from software to the CPU, to tell it that something needs its attention.
| Hardware interrupts | Software interrupts |
|---|---|
| pressing a key on the keyboard | division by zero |
| moving or clicking the mouse | two processes trying to access the same memory location |
| printer out of paper or ink | a program requesting input/output |
| power failure warning | a program error |
- A hardware device or a program generates an interrupt, which is sent to the CPU with a priority.
- At the end of each FDE cycle the CPU checks for interrupts.
- If the interrupt has a higher priority than the current task, the current task is paused and its register values are saved.
- The CPU runs the interrupt service routine (ISR) for that interrupt (e.g. reads the key pressed, displays an error message).
- When the ISR finishes, the saved values are restored and the original task continues, or another interrupt is handled.
As a result of interrupts, the computer can respond quickly to events without constantly checking every device, and errors can be dealt with before they cause bigger problems.
5Exam focus
Key words: system software; application software; utility; operating system; firmware; bootloader; interrupt; priority; interrupt service routine (ISR).
Quick self-check
Answer in your head first, then reveal.
Any two: antivirus; defragmenter; backup; compression; firewall (2).
Any three, e.g. manages memory – allocates RAM to programs (1); manages files (1); provides an interface (1); handles interrupts; manages peripherals; multitasking; security; user accounts.
Application runs on the OS (1); OS runs on/loaded by firmware/bootloader (1); bootloader runs on the hardware (1).
Division by zero / two processes accessing the same memory location (1).
CPU checks priority (1); current task saved (1); ISR run (1); task restored/continued (1).
