1. System Fundamentals

Operating Systems

Operating Systems

Introduction

students, every computer you use, from a laptop in class to a smartphone in your pocket 📱, needs a system that helps it start, run programs, manage memory, and communicate with devices. That system is the operating system, often written as $OS$. In IB Computer Science SL, operating systems are a key part of System Fundamentals because they connect hardware, software, users, and data into one working system.

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,
  • apply IB-style reasoning to common operating system situations,
  • connect operating systems to system architecture, data representation, performance, and ethics,
  • use real examples to show how operating systems support everyday computing.

Think about what happens when you press the power button on a device. The screen lights up, files become available, apps open, and the keyboard and mouse start working. None of that would be organized without an operating system.

What an Operating System Does

An operating system is the main system software that manages the computer’s resources and provides services for applications and users. It sits between the hardware and the software that people use.

A useful way to think of it is as a manager in a busy school 🏫. The manager does not teach every class, clean every room, or deliver every lunch, but organizes the people and resources so the school runs smoothly. In a computer, the operating system organizes:

  • the processor,
  • memory,
  • storage,
  • input and output devices,
  • running programs,
  • user access and security.

Some common operating systems are Windows, macOS, Linux, Android, and iOS. Although they look different, they all perform similar core jobs.

Booting and loading the system

When a computer starts, it goes through the boot process. The firmware stored on the motherboard begins the startup process, checks the hardware, and then loads the operating system into memory. After that, the operating system takes control.

This is important because software cannot run on its own. Programs need the operating system to load them, give them memory, and let them use devices. Without this control, the computer would not know which part should use the processor or how files should be found on the storage device.

User interface

The operating system also provides the user interface, or $UI$. This is the way users interact with the computer.

There are two main types:

  • graphical user interface, or $GUI$, which uses windows, icons, menus, and pointer devices,
  • command line interface, or $CLI$, which uses text commands.

A $GUI$ is common on phones and desktops because it is easy to learn. A $CLI$ is often faster for experienced users and useful for automation. For example, a system administrator may use a command line to copy many files at once or check network settings quickly.

Resource Management and Multitasking

One of the most important jobs of an operating system is resource management. Computers have limited resources, so the operating system decides how they are shared.

Processor management

The processor can only do so much at one time. If many programs are open, the operating system uses scheduling to decide which program gets processor time. This creates the feeling that several tasks are happening at once, even if the processor is actually switching rapidly between them.

This is called multitasking. For example, students, you might listen to music, browse the web, and type notes at the same time. The operating system manages this by giving each program short turns on the processor.

Memory management

Memory management is another key role. Random access memory, or $RAM$, stores data and instructions for programs that are currently being used. If too many programs are open, memory can fill up. The operating system keeps track of what is stored where, which program is using which memory locations, and how to free memory when a program closes.

If a device runs out of $RAM$, it may become slow because the operating system has to move data between $RAM$ and storage more often. This affects performance because storage is slower than main memory.

Device and peripheral management

The operating system also controls input and output devices through drivers. A driver is software that allows the operating system to communicate with hardware such as printers, keyboards, scanners, cameras, and speakers.

For example, when you print a document, the operating system sends the job to the printer driver, which translates the request into instructions the printer understands. Without the correct driver, the device may not work properly.

File Systems, Storage, and Security

Operating systems organize data so that users can save, find, and protect files.

File management

A file system is the method used to store and organize files on a storage device. It helps the operating system create folders, save documents, rename files, and keep track of where data is stored physically.

When you open a document, the operating system uses the file system to locate the data on storage and load it into memory. This is why file names, folders, and permissions matter.

Access rights and security

Operating systems also support security by controlling who can use the computer and what they can do. Different users may have different access rights. For example, a school network might let students open their own files but not change system settings.

This protects important data and helps prevent accidental damage. Passwords, user accounts, encryption support, and permission settings are all part of operating system security features.

Updates and maintenance

Operating systems need updates to fix bugs, improve performance, and close security weaknesses. If updates are ignored, devices may become vulnerable to malware or may not support newer applications.

This shows a link to ethics and social impact in System Fundamentals. People and organizations have a responsibility to keep systems updated because failing to do so can risk data loss, privacy problems, and service interruptions.

Operating Systems and IB Computer Science Reasoning

In IB Computer Science SL, you should not only define terms, but also explain why they matter in real situations.

Example 1: Too many applications open

Imagine a laptop with very little free $RAM$. A student opens a browser with many tabs, a music app, and a video editor. The operating system must divide memory and processor time among them. If resources are limited, the computer may slow down or freeze.

A good IB-style explanation would mention that the operating system manages memory and scheduling, and that performance decreases when demand exceeds available resources.

Example 2: Printer not working

If a printer is connected but cannot print, one possible cause is a missing or incorrect driver. The operating system depends on drivers to communicate with hardware. This is a clear example of device management.

Example 3: Sharing a school computer

On a shared computer, the operating system keeps student accounts separate. This helps protect files and settings. If students logs in, the system loads your profile and allows access based on your permissions. That is an example of user management and security working together.

Operating Systems in the Wider System Fundamentals Topic

Operating systems connect directly to the rest of System Fundamentals.

System architecture and operation

The operating system depends on the CPU, memory, storage, and input/output devices. It makes these parts work together as a system. It also supports the idea of the stored program concept by managing instructions and data in memory.

Data representation

The operating system stores and moves data in binary form. It does not change the fact that computers use $0$s and $1$s; instead, it manages how that data is loaded, saved, and processed. File sizes, memory usage, and storage capacity are all measured using data representation ideas.

Computer performance and management

Performance depends on how effectively the operating system manages processor time, memory, and devices. A well-designed operating system can improve responsiveness, while poor resource management can make a machine feel slow.

Ethics and social impact

Operating systems affect privacy, accessibility, and fairness. For example, accessibility features such as screen readers, magnifiers, high-contrast modes, and keyboard navigation help more people use computers. At the same time, operating systems collect some system data for updates, diagnostics, or security, so privacy settings matter.

Conclusion

Operating systems are essential system software that manage hardware, run applications, support users, and protect data. They handle booting, memory, processor scheduling, file systems, device drivers, user interfaces, and security. In IB Computer Science SL, students, you should be able to explain these roles clearly and apply them to real examples.

When you understand operating systems, you also understand how computers stay organized and useful. That makes operating systems one of the most important ideas in System Fundamentals.

Study Notes

  • An operating system is system software that manages hardware and provides services for applications and users.
  • The boot process loads the operating system after startup.
  • A $GUI$ uses windows, icons, menus, and pointers; a $CLI$ uses text commands.
  • The operating system manages the processor using scheduling and supports multitasking.
  • The operating system manages memory, especially $RAM$, by tracking what each program uses.
  • Device drivers let the operating system communicate with hardware such as printers and keyboards.
  • A file system organizes files and folders on storage devices.
  • Operating systems enforce user accounts, permissions, and other security controls.
  • Updates improve features, fix bugs, and reduce security risks.
  • Operating systems connect to system architecture, data representation, performance, and ethics in System Fundamentals.
  • Real-world examples like a slow laptop, a printer issue, or shared school accounts can be used to explain operating system functions.

Practice Quiz

5 questions to test your understanding