Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Operating System and Core Components

Main functions

  1. The Human Computer Interface (HCI) provides a method of communication between the user and the system.
  2. Multitasking manages the allocation of CPU time limits to multiple processes running simultaneously, using priority rules to prevent resource starvation.
  3. It is the platform for running application software. It handles the loading, execution, and running of user programs.
  4. It manages user accounts and controls security via user IDs and passwords.
  5. It can manage files, such as organizing file directories, enforces file-naming rules (e.g. .txt, .docx), manages file permissions, and handles basic operations (create, open, copy, move, delete).
  6. It manage hardware peripherals. It controls I/O devices using device drivers and data buffers.
  7. Memory management allocates and tracks locations in physical RAM. It enforces memory protection to ensure two running applications do not overwrite the same memory address spaces (which can cause data loss).
  8. It is responsible for interrupt handling routines. It monitors and responds to execution signal flags sent by hardware and software.

Utility programs

  • Utility programs are system software applications explicitly designed to help, manage, maintain, optimize, and control computer hardware resources.

Anti-virus

  • Compares file patterns against a known database of computer viruses.
  • Runs heuristic checking, which analyzes software behavior to spot unknown/mutated viruses.
  • Puts infected files into quarantine for automatic or user-guided deletion.
  • Must be updated constantly to defend against newly discovered malware signatures.

Disk defragmentation software

  • As files are created, deleted, and modified on a Hard Disk Drive (HDD), data blocks become scattered across random sectors (called non-contiguous). This forces the physical read-write head to move continuously, slowing down data access.
  • A defragmenter reorganizes these scattered blocks back into contiguous sectors which speeds up retrieval times.
    • SSDs should not be defragmented because they use flash memory with near-instant direct access. Defragmentation is unnecessary and can degrade the SSD.

Backup software

  • Schedules automated or manual copies of important data.
  • Only copies files that have been changed since the last backup to save time and storage space.
  • Industry best practice specifies maintaining three separate versions of critical files:
    • The primary working copy on the internal drive (HDD or SSD).
    • A local backup copy stored on removeable media such as a USB memory stick.
    • A remote backup copy stored off-site (cloud storage).

Security software

  • Manages firewalls, enforces data encryption, handles OS system updates, and restricts network access privileges.

Screensavers

  • Where pixels start moving during periods of inactivity to prevent burn-in for old monitors.
    • Currently, htey are mainly used to trigger automatic privacy locks or run background automated tasks.

Device drivers

  • A device driver is a translation program that enables the OS to communicate with a specific hardware peripheral (e.g. printer/graphics card).
  • Every USB device contains a collection of info called descriptors, which include a Vendor ID (VID), Product ID (PID), and a unique serial number.
  • Without the appropriate device driver, the OS cannot convert instructions into the exact format required by that specific hardware device, resulting in an error where the device is not recognized.

Linkers and bootstrapping

  • A linker is a system program that takes one or more object code files compiled from source code and combines them into a single executable application file.
  • When a computer is powered on, it executes a low-level initialization routine called the bootstrap loader.
    • This program is part of the BIOS (Basic Input/Output System), which is stored as permanent firmware on a non-volatile ROM (Read Only Memory) chip on the motherboard.
    • The custom settings configured by the user inside the BIOS (e.g. boot device order, clock speeds) are stored separately on a volatile CMOS chip, which is powered by a small rechargeable battery on the motherboard to preserve data when the mains power is cut.