1. System Fundamentals

Operating Systems

Operating Systems

Introduction

students, every computer you use needs a manager behind the scenes 🖥️. That manager is the operating system. It helps the hardware and software work together, controls how resources are used, and gives users a way to interact with the machine. Without an operating system, a computer would be much harder to use and many programs would not run correctly.

By the end of this lesson, you should be able to:

  • explain the main ideas and terminology behind operating systems,
  • describe how an operating system manages hardware and software resources,
  • apply IB Computer Science HL reasoning to common operating system situations,
  • connect operating systems to system architecture, data representation, performance, and ethics,
  • use real-world examples to show why operating systems matter in modern computing.

Operating systems are a key part of System Fundamentals because they sit between the user, application software, and the computer hardware. They make the computer usable, efficient, and secure.

What an Operating System Does

An operating system is system software that manages the computer’s hardware and provides common services for applications. In simple terms, it is the control center of the computer.

A computer has many resources to manage, such as the processor, memory, storage, input devices, output devices, and network connections. The operating system decides how these resources are shared. For example, if you are watching a video while a document downloads and music plays, the operating system is helping those tasks run at the same time.

The main functions of an operating system include:

  • process management — deciding which programs get CPU time,
  • memory management — allocating and freeing RAM,
  • device management — controlling input and output devices,
  • file management — organizing data on storage devices,
  • user interface — offering ways to interact with the computer,
  • security and access control — protecting data and users.

A useful term is multitasking, which means running more than one process seemingly at the same time. On a single processor, the operating system rapidly switches between processes so they all appear active. This switching is often called time sharing.

For example, if students opens a web browser, a music app, and a word processor, the operating system assigns short bursts of CPU time to each process. This creates the impression that all three are running together 🎵📄🌐.

Process Management and the CPU

A process is a program in execution. A program stored on disk becomes a process when the operating system loads it into memory and starts running it. The operating system must keep track of each active process and manage access to the CPU.

The CPU can only execute instructions from one place at a time on each core, so the operating system uses scheduling to choose which process runs next. Scheduling helps keep the system responsive. For example, if students clicks a button in a game, the game should respond quickly even if another program is doing a long task in the background.

The operating system stores information about each process in a process control block. This typically includes details such as the process state, program counter, CPU registers, and memory information. The exact contents can vary by system, but the purpose is the same: to help the operating system pause and resume processes correctly.

A key idea is context switching. When the CPU stops running one process and starts another, the operating system saves the state of the first process and loads the state of the second. This is essential for multitasking, but it takes time. If there are too many context switches, performance can decrease because the CPU spends more time switching and less time doing useful work.

Common process states include:

  • new — the process is being created,
  • ready — the process is waiting for CPU time,
  • running — the process is currently executing,
  • blocked — the process is waiting for input or another event,
  • terminated — the process has finished.

These states help explain how an operating system controls the flow of work inside a computer.

Memory and Resource Management

The operating system is responsible for memory management, especially RAM. RAM is fast but temporary storage, and programs need space in RAM while they run. If too many programs are open, RAM can become full, and the system may slow down.

The operating system decides which parts of memory are used by which processes. It must prevent programs from interfering with each other. This is important for reliability and security. For example, if a text editor accidentally reads another program’s data, that would be a serious error.

Many operating systems use virtual memory. Virtual memory is a technique that uses part of secondary storage, such as an SSD or hard drive, as an extension of RAM. It allows larger programs to run, but it is slower than real RAM because storage devices have higher access times. If students opens too many apps at once, the computer may start using virtual memory, which can make the system feel sluggish.

Another important term is resource allocation. Resources include CPU time, memory, disk access, printers, and network bandwidth. The operating system distributes these resources fairly and efficiently. In IB Computer Science HL, it is important to understand that resource management is a balancing act between speed, fairness, and safety.

Files, Storage, and User Access

The operating system also manages files and folders. A file system is the method used to organize, store, and retrieve files on a storage device. It keeps track of file names, locations, sizes, and permissions.

For example, when students saves a school project, the operating system writes the data to storage and updates the file system so the file can be found later. When the file is opened again, the operating system retrieves the data from the correct location.

Operating systems also control permissions and access rights. These rules decide who can view, edit, or delete files and whether a user can install software or change system settings. This is especially important in shared computers, school networks, and workplaces.

Most operating systems provide a user interface. A graphical user interface uses icons, windows, and menus, while a command-line interface uses typed commands. A GUI is easier for many users, while a CLI can be faster and more powerful for expert users. For example, a technician may use commands to check network settings or manage files more efficiently.

The operating system also supports input/output management. It handles communication with devices such as keyboards, mice, monitors, printers, speakers, and scanners. It often does this using device drivers, which are programs that allow the operating system to communicate with specific hardware devices.

Operating Systems, Performance, and Ethics

Operating systems strongly affect computer performance. A well-designed operating system can improve responsiveness, efficiency, and stability. Several factors are important:

  • CPU usage — how much processor time is being used,
  • memory usage — how much RAM is occupied,
  • disk access speed — how quickly data can be read or written,
  • system overhead — the resources the operating system itself uses.

For example, a computer with many background services may feel slower because those services use CPU time and memory. The operating system must manage these services carefully so the system remains usable.

Operating systems also have an ethical and social impact. They affect privacy, accessibility, security, and access to technology. For example, an operating system may collect diagnostic data, store user activity, or enforce account-based access. These features can help improve performance and support, but they also raise questions about data protection and consent.

Accessibility is another important issue. Many operating systems include tools such as screen readers, magnifiers, voice control, and high-contrast modes. These features help users with different needs access technology more easily. In a school setting, this supports equal access to learning.

Security is also closely tied to operating systems. Updates and patches fix weaknesses that could be exploited by malware. A computer that is not updated may become vulnerable to viruses, ransomware, or unauthorized access. students should understand that operating systems are not only about convenience; they are also critical for protecting data and devices 🔒.

Operating Systems in IB Computer Science HL Context

In IB Computer Science HL, operating systems connect to several parts of System Fundamentals.

They relate to system architecture and operation because they manage the hardware resources that allow the computer to run. They relate to data representation because they store and move data through memory, files, and devices. They affect computer performance and management because they influence how quickly tasks are processed and how efficiently resources are used. They also connect to ethics and social impact because they influence privacy, accessibility, and security.

A strong IB-style answer should use precise terminology. For example, instead of saying “the computer decides,” say “the operating system schedules processes” or “the operating system allocates memory.” Precision shows understanding.

A useful example question is: Why does a computer slow down when too many applications are open? A good answer would mention that the operating system must divide CPU time among more processes, manage more memory, and may begin using virtual memory, which is slower than RAM. This shows reasoning, not just memorization.

Another example is: Why does a printer need a driver? The answer is that the device driver allows the operating system to communicate with the printer using the correct instructions and data format.

Conclusion

Operating systems are essential system software that make computers usable, efficient, and secure. They manage processes, memory, files, devices, and user access while helping programs run together smoothly. For students, understanding operating systems is a major step in understanding how a computer system works as a whole.

Within System Fundamentals, operating systems are the link between hardware and software. They influence performance, security, accessibility, and everyday user experience. In IB Computer Science HL, knowing how operating systems work helps you explain real systems clearly and apply your knowledge to practical situations.

Study Notes

  • An operating system is system software that manages hardware and provides services for applications.
  • Main functions include process management, memory management, file management, device management, security, and user interfaces.
  • A process is a program in execution.
  • Scheduling decides which process uses the CPU next.
  • Context switching saves one process’s state and loads another’s state.
  • Multitasking lets many programs appear to run at the same time.
  • Virtual memory uses secondary storage to extend RAM, but it is slower than real RAM.
  • A file system organizes files on storage devices.
  • Device drivers help the operating system communicate with hardware.
  • Operating systems affect performance through CPU usage, memory usage, disk access, and system overhead.
  • Operating systems also affect privacy, accessibility, security, and access to technology.
  • In IB Computer Science HL, operating systems connect directly to system architecture, performance, data representation, and social impact.

Practice Quiz

5 questions to test your understanding