Software is a set of programs that tells the hardware what to do. It is broadly divided into system software and application software.
- System software runs and manages the computer: operating system, device drivers, utilities (antivirus, disk cleanup, compression), and language translators.
- Application software does a user's task: word processor, spreadsheet, presentation, browser, media player, accounting software.
Operating system (OS): the interface between user and hardware. Its functions are process management, memory management, file management, device (input/output) management, security and providing a user interface (command-line or graphical, GUI). Examples: Windows, Linux, macOS, Android.
Types of OS: batch, multiprogramming, multitasking/time-sharing, multiprocessing, real-time (strict time limits, e.g., industrial control), and distributed.
Language translators:
- Compiler: translates the whole high-level program at once into machine code, then reports errors.
- Interpreter: translates and executes line by line, stopping at the first error.
- Assembler: converts assembly language into machine code.
Worked example: A student runs a program and it stops at line 5 with a syntax error while lines 1–4 have already run. The translator is behaving like an interpreter (line-by-line). A compiler would have reported the error before anything ran.
Licensing: open-source (source code available to study and modify, e.g., Linux), proprietary (closed source), freeware (free to use), shareware (free trial, pay later).
Booting: loading the OS when the computer starts. Cold boot = starting from power-off; warm boot = restarting without switching off. The start-up firmware is stored in ROM.
Common confusions: a device driver is system software, not application software; an antivirus is a utility; firmware is software stored permanently in hardware.