1. Home
  2. Explore
  3. Computer Science
  4. Operating Systems Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Operating Systems Overview

Operating Systems Module Notes

Module Overview

This module builds directly on the first-year Computer Systems course. It explores how a modern operating system is constructed, the choices designers must make, the effects of those choices, and why different operating systems make different decisions. For example, a Windows desktop likely includes a hard disk, so Windows supports hard disks; an Android phone typically does not have one, so Android does not prioritize hard disk support. Every design involves trade-offs β€” maximizing speed, functionality, and resource efficiency simultaneously is impossible, so compromises are always necessary.

Textbook

The required textbook is Operating Systems Concepts by Silberschatz, Galvin, and Gagne (any edition with a dinosaur on the cover). All editions contain the same core principles, though newer editions use different example operating systems (e.g., Solaris vs. Windows 7). Students are strongly advised to buy a cheap second-hand copy (as low as a penny plus postage) because the underlying concepts have not changed. The lectures and slides are based on this book, and having a personal copy is valuable for this module, other modules, and future careers.

Module Materials: OneNote Notebook

All module materials are provided in a OneNote notebook β€” a single document containing text, images, spreadsheets, presentations, and YouTube videos. It is organized by chapter and includes:

  • The syllabus (weekly schedule, chapter names, assessment due dates)

  • Slides and tutorials for each chapter

  • Lists of sections not covered (e.g., synchronization and deadlocks are omitted)

  • An indication of which slides are the "module version" (abridged) versus the "original book version" (full)

Students should read ahead β€” for instance, read the "System Structures" chapter before the next lecture β€” so that lectures become question-and-answer sessions rather than monologues.

Access and Communication

The notebook is accessible via a link sent by email and also linked in the Teams team. Teams is used for communication, but the notebook itself does not require credentials. Students should join the Teams team using the provided code. Important: The university VLE (Moodle) is used only for assessments; all learning materials are in OneNote.


Assessments

Three components make up the module mark (100% total). Each component requires a minimum of 30% to pass the module overall.

πŸ–₯️ Individual Coursework: Little Man Computer (LMC) β€” 20%

The Little Man Computer is a simplified model of a CPU that executes assembly language instructions. This assessment requires students to write a program that reads values and sorts them from smallest to largest β€” using assembler rather than a high-level language. The purpose is to remind students just how much work an operating system does under the hood.

  • Submission: Two items:

    1. Design β€” flow chart, pseudocode, or any clear representation.

    2. Code β€” the assembler source code that runs in the specific online LMC implementation provided. Only this version will be accepted; other implementations may differ.

  • Lab demonstration: Students must explain their code in person (at the campus lab) to prove they understand it, not just copied it.

  • Extra credit: Extensions such as handling negative numbers or unlimited inputs are possible. Students must explicitly state what they have done.

  • Marking criteria: LMC command set, program logic, commented code, redundant code, etc.

πŸ“ Group Report β€” 40%

Groups of four students (self-selected on Moodle; exceptions for class size) produce a professional report on a chosen Linux distribution. The report must connect the theories covered in lectures to a real operating system, explaining why that Linux distribution made particular choices about:

  • File system

  • Thread implementation

  • CPU scheduling

  • Memory management

  • (Other topics from chapters up to a certain point β€” the cut-off gives students time to write)

  • The report must be properly referenced, include diagrams, and follow a professional structure.

  • There is no prescribed length; students should use professional judgment to cover the marking scheme adequately.

  • The report corresponds to chapters covered early in the semester, allowing students to write sections as they learn new material.

  • Labs in the second half of the module are dedicated to working on this report.

πŸ“ Class Tests β€” 40% (two tests, 20% each)

Two online, timed, randomized tests on Moodle:

  • Test 1: Chapters 1–5

  • Test 2: Chapters 8–13

Each test draws questions from a large pool, so students cannot simply copy from neighbours. Question types include multiple choice, true/false, drag-and-drop, and choose-more-than-one.

  • Practice: For every chapter there is a chapter test (untimed) and a timed assessment that simulates the actual test. Students are expected to complete these weekly.

  • If a chapter test is not passed, students should study the material and ask questions in labs.


Introduction to Operating Systems

What Is an Operating System?

An operating system is the software layer that sits between the hardware and the user/application. It manages all resources β€” CPU, memory, storage, I/O devices β€” and coordinates multiple programs and users. For example, when a user double-clicks a PowerPoint file, the OS:

  1. Detects the mouse click location.

  2. Loads the file from storage.

  3. Associates the file extension with the PowerPoint executable.

  4. Loads PowerPoint into memory.

  5. Tells the display to show the PowerPoint interface.

  6. Handles all subsequent input/output requests.

The OS also enforces protection β€” preventing one program from accessing another’s data β€” and resource sharing among multiple processes and users.

Kernel: The core component of the OS, always running in memory. It is tailored to specific hardware. (In Linux, the "operating system" is really the Linux kernel; most other tools come from other projects like the Free Software Foundation.)

System Startup: Bootstrap

When the computer powers on, a small program stored in ROM (read-only memory) runs. This bootstrap program checks that all hardware components are present and functioning, then loads the operating system from disk into memory and transfers control to it.

Interrupts

Because a CPU can execute only one instruction at a time, the OS uses interrupts to handle events that occur concurrently (e.g., typing a key, receiving a network packet). An interrupt pauses the current process, runs a handler, and then resumes the original process. The module will cover how interrupts work and their performance implications.

Computer System Architecture

Most modern computers follow the von Neumann architecture β€” a fetch-execute cycle:

  1. Fetch an instruction from memory.

  2. Decode it.

  3. Execute it.

  4. Move to the next instruction until a halt command is encountered.

This is exactly how the Little Man Computer works, albeit at a much slower speed.

  • Multiprocessor systems: Multiple CPUs or multiple cores in a single CPU package. Benefits include increased throughput, economy of scale, and increased reliability.

  • Clustered systems: Multiple physical computers connected via shared storage, each running specific tasks. Example: a movie studio animating different elements on separate machines and then combining the results.

  • Multiprogramming (batch) systems: No interactive input; jobs are queued and run sequentially when resources are idle (e.g., overnight student timetabling).

  • Timesharing systems: A central server gives each user a small slice of CPU time, making it appear that everyone is served simultaneously (e.g., running a video call on Teams).

  • Real-time systems: Must guarantee a response within strict time constraints (e.g., car ABS, nuclear reactor control). Failure can be catastrophic.

Storage Hierarchy and Caching

Different storage devices have trade-offs between speed, cost, and capacity:

  • Solid State Drives (SSD): Fast, expensive.

  • Hard Disk Drives (HDD): Slower, cheaper.

  • USB drives, network storage β€” further away from CPU.

To make slow devices appear faster, the OS uses caching β€” storing frequently accessed data in a faster, closer medium (e.g., CPU cache, main memory). Additionally, Direct Memory Access (DMA) allows devices to transfer data directly to/from memory without involving the CPU, freeing it for other work.

Memory Management

The OS must keep processes separate so that one process cannot overwrite another’s data. This involves allocating memory to processes, protecting that memory, and managing sharing when needed.

Process Management

A process is an executing program. The OS must schedule which process gets the CPU, for how long, and in what order. It also manages communication between processes (e.g., clicking a meeting link in Outlook to launch Teams). The module covers CPU scheduling and process concepts, but synchronization and deadlocks are not included.

File Systems

Files are stored on disks (HDD, SSD, USB). The OS maintains a mapping from filenames to physical disk locations (e.g., sector 57). Different file systems (e.g., NTFS, ext4, FAT32) choose different ways to organize this mapping, balancing speed, reliability, and features like access permissions.

Networking

Modern OS must support network connections β€” wired or wireless. The OS manages sending data from one machine to another, handling different network topologies: client-server (a central server provides resources) vs. peer-to-peer (each computer can act as both client and server). Mobile devices add further complexity.

Virtualization

Virtualization allows one computer to run multiple operating systems simultaneously (e.g., running Linux on a Windows machine via a virtual machine). This is used extensively in industry to consolidate old hardware or to create isolated environments. Even the cloud β€” where virtual machines run on remote servers β€” relies on virtualization.


The module encourages proactive engagement with materials and labs to fully grasp these concepts. Weekly chapter tutorials and tests are essential self-assessment tools; students should attempt them, identify gaps, and seek help in lab sessions. The overarching theme is that every operating system is a set of deliberate design choices, each with its own trade-offs.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent