Operating systems

Computer Science AS · System software. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science AS topics

The idea

The operating system (OS) is the software that sits between the hardware and the user. Hardware cannot be used without it: the OS gives the user an interface, lets application programs run and hides the complex details of the hardware.

The OS manages five things: memory, files, security, hardware (input, output and peripherals) and processes. Learn one or two tasks for each.

Utility software is extra system software that keeps the computer working well, such as a virus checker or back-up software. A program library is a set of routines that are already written and tested, so a developer can call them and does not have to write them again.

In simpler words

The operating system is the software that sits between you and the hardware. It gives you a screen to work with and lets apps run. It manages memory, files, security, devices and running programs. Utility software, like a virus checker or backup tool, keeps the computer healthy. A program library holds ready-made, tested code that programmers can use again.

An everyday comparison

An operating system is like a building manager. Tenants (programs) get rooms (memory), the manager handles the lifts and boilers (hardware), keeps keys (security) and decides who uses shared spaces when (process scheduling). The comparison stops working because the OS also hides the hardware's complexity completely, so programs never deal with devices directly, and it switches between processes many times a second using interrupts.

Rules to remember

Common mistake

Students say defragmentation frees up disk space or should be used on a solid state drive. It only rearranges file blocks, and an SSD has no moving read head so it gains no speed and loses some of its limited write cycles.

In the exam

Name the management task, then give one specific job: memory management (allocates RAM, keeps processes apart, paging), process management (scheduling, interrupts), hardware management (drivers, buffers), file management, security management. For utilities, give the purpose, e.g. defragmentation moves file blocks together so a hard disk reads faster, but say it brings no benefit on an SSD. For libraries, state the benefits: tested code, saved time, fewer errors. For DLLs, give one advantage and one drawback.

Worked example

Three programs on one computer all use the same DLL to print documents. Give two benefits of this compared with putting the print code inside each program.

  1. A DLL is not copied into the executable file, so each of the three program files is smaller.
  2. The DLL is loaded into memory only when a program calls it, and one copy can be shared, so less RAM is used.
  3. If the print routine is improved, only the DLL file is replaced. The three programs do not need to be recompiled.

Answer: Smaller executable files and less memory used, and the routine can be updated without recompiling the programs.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Bit manipulationLanguage translators →Take a Computer Science AS test