Format
Self-paced
Status
Status: planned, not offered yet
Programme
Foundation programme · Semester 4
Term
Spring 2028
Credits
8 ECTS
Study hours
225
Prerequisites
CS102-F26 Digital Design and Computer Architecture I, CS103-S27 Data Structures and Algorithms I
Module leader
Dr. Ali Khudiyev
Email
ali.khudiyev@wosm.academy
Office hours
Monday–Friday, 10:00–17:00 (Baku time, UTC+4)
Language
English
Cost
Free

Module Overview

An operating system turns bare hardware into a machine that many programs can share safely and efficiently. This module explains how it does so, around three ideas: virtualisation of the processor and memory, concurrency, and persistence of data in file systems.

The module builds on the two Digital Design and Computer Architecture modules, which explain the hardware the operating system manages: privilege modes, interrupts, caches and memory. Practical work is in C using the POSIX interface, building on the C programming from the Data Structures and Algorithms modules.

Aims

  • Explain how an operating system virtualises the processor and memory and manages devices and storage.
  • Teach the principles and pitfalls of concurrent programming.
  • Show the design trade-offs in scheduling, memory management and file systems.
  • Give practical experience of systems programming in C.

Learning Outcomes

After completing this course, you will be able to:

  1. LO1.
    Explain the role and structure of an operating system, including privilege modes, interrupts, traps and system calls.
  2. LO2.
    Explain processes and threads, and evaluate CPU scheduling policies.
  3. LO3.
    Write correct concurrent programs using locks, semaphores and condition variables, and recognise, prevent and handle race conditions and deadlock.
  4. LO4.
    Explain and analyse memory management: address spaces, segmentation, paging, translation lookaside buffers and page replacement.
  5. LO5.
    Explain how file systems and I/O are implemented, including crash consistency.
  6. LO6.
    Write systems programs in C that use the POSIX interface for processes, threads, memory and files.

Syllabus

UnitTopic
1Introduction: what an operating system does; operating system structures
2Hardware support: privilege modes, interrupts, traps and system calls
3Processes and the process API: fork, exec, wait
4Inter-process communication: pipes, signals and shared memory
5Threads and POSIX threads
6CPU scheduling: FCFS, SJF, round robin, MLFQ; multiprocessor scheduling
7Synchronisation I: race conditions, critical sections, locks
8Synchronisation II: semaphores, condition variables, monitors; classic problems
9Deadlock: conditions, prevention, avoidance and detection
10Memory management: address spaces, segmentation and paging
11Virtual memory: TLBs, multi-level page tables, page replacement
12I/O devices, device drivers; hard disks and SSDs
13File systems: files, directories and their implementation
14Crash consistency: journaling and log-structured file systems
15Protection and security
16Virtual machines and containers
17Course Review & Exam

Teaching and Learning Methods

The module is self-paced. All materials are provided on Moodle. Each unit has a lecture and exercises. Programming assignments in C let you build parts of operating-system functionality, such as a shell, a thread-safe data structure or a memory allocator.

ActivityHours
Lectures34
Labs / Tutorials46
Independent study145
Total225

Assessment

Your knowledge will be assessed throughout the course with quizzes, programming assignments and the final exam. The exam checks whether you can explain and analyse operating-system mechanisms and policies and reason about concurrent code. The programming assignments check whether you can write working systems programs in C.

ComponentWeightDueLOs
Quizzes20%ThroughoutLO1–LO5
Programming assignments40%ThroughoutLO3, LO6
Final exam40%End of moduleLO1–LO5
Total100%

Reading List

Essential

Recommended

  • A. Silberschatz, P. B. Galvin, G. Gagne: Operating System Concepts, 10th ed., Wiley, 2018.
  • A. S. Tanenbaum, H. Bos: Modern Operating Systems, 4th ed., Pearson, 2014.
  • R. E. Bryant, D. R. O’Hallaron: Computer Systems: A Programmer’s Perspective, 3rd ed., Pearson, 2016.
  • B. W. Kernighan, D. M. Ritchie: The C Programming Language, 2nd ed., Prentice Hall, 1988.

Materials and Licence

Course materials are published under the Creative Commons Attribution-ShareAlike 4.0 licence unless stated otherwise. See wosm.academy/licence for details.

Policies

  • Attendance: Attendance is not mandatory. The module is self-paced, so you can study the materials when it suits you.
  • Late submissions: Work submitted after the deadline is penalised.
  • Academic integrity: All submitted work must be your own. See the Code of Conduct.

Free. No application needed. New to Moodle? See How to join.