HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
The Operating System and Interrupts
  1. 1What an operating system does
  2. 2Interrupts and where they come from
  3. 3Handling an interrupt
  1. Computer Science
  2. /The Operating System and Interrupts
  3. /What an operating system does

Course 4.2·Lesson 1 of 3

What an operating system does

The operating system manages the whole computer. It manages files, memory, peripherals and multitasking, handles interrupts, provides an interface and a platform for applications, and looks after security and user accounts. You learn each function with an example.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
The Operating System and Interrupts
  1. 1What an operating system does
  2. 2Interrupts and where they come from
  3. 3Handling an interrupt

Try the code and the simulations beside the lesson.

The manager of the computer

Think of a school office. It keeps the records, books the rooms, lets visitors in, and passes messages to the teachers. The teachers can then get on with teaching. The operating system (OS) does this job for a computer. It manages the hardware, so that the applications can get on with the user's tasks.

The syllabus lists nine functions of an operating system.

A box labelled Operating system in the middle, with nine labels around it joined to it by lines: managing files, handling interrupts, providing an interface, managing peripherals and drivers, managing memory, managing multitasking, a platform for applications, system security, and managing user accounts.

Managing files

The OS keeps track of where each file is stored on the drive. It lets you create, name, open, save, copy, move and delete files, and it sorts them into folders. When a word processor saves a letter, it asks the OS, and the OS finds the free space on the drive.

Handling interrupts

An interrupt is a signal that something needs the processor's attention now, such as a key press. The OS makes sure each interrupt is dealt with. The next two lessons are about interrupts.

Providing an interface

The OS gives the user a way to work with the computer. Most computers have a graphical user interface (GUI), with windows, icons, menus and a pointer. Some use a command-line interface, where you type commands. The OS shows the output and reads the input.

Managing peripherals and drivers

A peripheral is a device connected to the computer, such as a printer, a keyboard or a webcam. The OS uses a device driver for each one. The driver tells the OS how to work that device. When you print, the OS sends the data to the printer through its driver.

Managing memory

Every program that runs needs space in the main memory (RAM). The OS decides which part of memory each program uses. It keeps one program from using another program's memory, and it frees the memory when a program closes.

Managing multitasking

You play music, type a letter and download a file at the same time. But one processor core carries out one instruction at a time. The OS gives each program a short turn on the processor, one after another. The turns are so short that the programs seem to run at the same time. This is multitasking.

Providing a platform for running applications

An application uses the OS's services: to show a window, to read the mouse, to save a file. So the people who write an application do not need to know how each make of printer or drive works. The OS is the platform the application runs on.

Providing system security

The OS protects the computer and its data. It asks for a password when someone logs in. It gives access rights, so a user can open some files but not others. It can install security updates.

Managing user accounts

Several people can use one computer. Each has a user account, with a user name, a password, their own files and their own settings. An administrator account can add or remove accounts.

In the exam. "Describe two functions of an operating system" wants each function named and then explained with what it does. "Manages memory" alone is often not enough: add "it decides which part of RAM each program uses".

Practise with new numbers

Try it in Python

The program models multitasking. Three programs share the processor in turns of 20 ms, and the program prints each turn and when each program finishes.

Read it first. Then run it. Which program finishes first, and why?

1. Change slice_ms = 20 to slice_ms = 10. Count the turns now.

2. Make the download need 100 ms. Which program finishes last now?

Common mistakes

  • Naming a function without saying what it does. Add one sentence of detail.
  • Mixing up memory and storage. Managing memory is about RAM, where running programs are kept. Managing files is about the drive.
  • Saying the programs really run at the same time. On one core they take turns very fast.
  • Forgetting the driver. The OS works each peripheral through its device driver.

Remember these

  • The OS manages files, memory, peripherals and drivers, and multitasking.
  • It handles interrupts, provides an interface, and provides a platform for applications.
  • It provides system security and manages user accounts.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A user drags a file from one folder to another. Which function of the OS is used?
  1. A new webcam is plugged in. What does the OS need to work it?
  1. Why can two programs not use the same part of RAM at the same time?
  1. A computer has one processor core. How can music play while you type?
  1. Give two ways the OS provides system security.

Enroll free in The Operating System and Interrupts

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (5)

Name the function of the operating system that is used in each case…Easy · High School (9–10) · by StemPy Lab
A computer has one processor core. Five programs are open…Medium · High School (9–10) · by StemPy Lab
A laptop has 8 GiB of RAM. The operating system uses 2 GiB…Medium · High School (9–10) · by StemPy Lab
Next: lesson 2Interrupts and where they come from
← The Operating System and Interrupts
← PreviousInterrupts and where they come from →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Three programs are started at the same moment…Hard · High School (9–10) · by StemPy Lab
Describe four functions of an operating system…Medium · High School (9–10) · by StemPy Lab

Python Labs (1)

Share the processor in turnsPython Lab · by StemPy Lab