Course 4.2Lesson 1 of 3
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.
Try the code and the simulations beside the lesson.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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".
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.
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Every lesson is open to read. Enrolling also lets you:
Log in to join the discussion.
Loading…
This lesson is free to read. Enroll free to keep your place and take the tests.