ScholaFly

CS06-02 Computer Science Watch

What an operating system does

Watch on YouTube

In this lesson

In this video you'll learn about what an operating system does for GCSE Computer Science. Watch first: {{video:CS06-01}}

By the end: Explain why a computer needs an operating system and describe each of its management functions with a precise verb and object - managing the processor and multitasking, memory, peripherals through drivers, files, users and security, and the user interface - so that each one could be matched to a task it performs.

What it covers

  • THE NEED: one processor, one block of memory and many devices shared by many programs and possibly many users - something has to manage them, and that is the OS. This is AQA's 'need for' and OCR's and Edexcel's 'purpose'
  • PROCESSOR / PROCESS MANAGEMENT AND MULTITASKING: the OS schedules which process uses the processor and when, switching fast enough that several programs appear to run at once (AQA 'processor(s)', Edexcel 'process management', OCR 'multitasking')
  • MEMORY MANAGEMENT: the OS allocates memory to each program, keeps programs out of each other's memory, moves data between memory and frees it when a program closes (AQA, OCR; OCR's scope names 'the transfer of data between memory' and 'the allocation of memory to applications')
  • PERIPHERAL / I/O MANAGEMENT AND DRIVERS: the OS manages communication with input and output devices, using a device DRIVER for each one to translate between the OS and that device (AQA 'I/O devices', Edexcel and OCR 'peripheral management', OCR 'and drivers')
  • FILE MANAGEMENT: naming, saving, moving, deleting and organising files into a hierarchical folder structure with a root directory (Edexcel, OCR - OCR's scope names naming, allocating to folders, moving and saving)
  • USER MANAGEMENT AND SECURITY: user accounts, logins and access rights, so several people can use one computer and each reaches only what they are allowed to (Edexcel and OCR 'user management', AQA 'security')
  • THE USER INTERFACE: how the user communicates with the computer - graphical or command line - and what a user interface provides (OCR only)
  • MANAGING APPLICATIONS: installing, starting and stopping applications and giving them access to resources (AQA only, printed as 'applications')
  • THE PRECISION RULE: every function is a verb and an object - 'allocates memory to each running program' - never 'handles memory'

Key words

About this video

What an operating system does | GCSE Computer Science

What an operating system does: managing the processor, memory, devices, files, users and security, for GCSE Computer Science.
AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Software and languages 2 of 8.
Full Software and languages playlist: https://www.youtube.com/playlist?list=PLQW0s9-KegDg
More at https://scholafly.com

Watch first: System software and application software - https://youtu.be/RXyXx0g8oag
Video code: CS06-02 (search "ScholaFly CS06-02")

Videos in this chapter:
CS06-00 Software, systems and languages - Intro: https://youtu.be/ZUCeKOmRzOk
CS06-01 System software and application software: https://youtu.be/RXyXx0g8oag
CS06-02 What an operating system does: https://youtu.be/SIT-KoeAO10
CS06-03 Utility software: https://youtu.be/SsMEnR8roG0
CS06-04 Robust software and finding vulnerabilities: https://youtu.be/btlub9ax64Q
CS06-05 High-level and low-level languages
CS06-06 Machine code and assembly language
CS06-07 Compilers, interpreters and assemblers
CS06-08 The IDE

#GCSEComputerScience #SoftwareAndLanguages #WhatAnOperatingSystemDoes

For teachers
This GCSE Computer Science lesson teaches what an operating system does. By the end, students should be able to explain why a computer needs an operating system and describe each of its management functions with a precise verb and object - managing the processor and multitasking, memory, peripherals through drivers, files, users and security, and the user interface - so that each one could be matched to a task it performs. It works through five worked examples and the mistakes examiners report, and suits Foundation and Higher tier students.

Exam board specification references:
AQA GCSE Computer Science (8525)
- 3.4.3 Software classification
Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science
- 3.2.1 Explain the purpose and functionality of an operating system in file, process, peripheral and user management.
Cambridge OCR Level 1/Level 2 GCSE (9-1) in Computer Science
- 1.5.1 Operating systems

Read the transcript

Imagine a laptop playing music, holding thirty browser tabs, saving a file, listening to the keyboard and checking for updates, all at the same moment. It has one processor and one block of memory to share between all of that. Something has to decide which program gets the processor next, where in memory each one lives, and which program a key press belongs to. Nobody you can see is making those decisions, and yet they get made thousands of times every second.

In Software, systems and languages, this one is video two of eight: the middle layer of the software stack, opened up. If those layers feel shaky, System software and application software is the one to go back to.

That decision-maker is the operating system, the main piece of system software. A computer needs one because many programs, and sometimes many people, share one processor, one memory and a handful of devices. Without something in charge, two programs could write over each other's data, or both grab the printer at once. The operating system manages every shared resource, so each program gets a fair and safe share. It has seven jobs: the processor, the memory, the devices, the files, the users and their security, the way a person talks to the computer, and the applications themselves. Courses list these under slightly different names, so learn all seven and use your own course's words. Your board's line is here. Each job is described with a verb and an object, never a bare label. Memory management on its own is only a name. Allocates memory to each running program is a description. Three descriptions of the processor job. A: it handles the processor. B: it decides which program uses the processor next, and for how long. C: it does the processing. Which one of A, B and C is a precise description of the operating system's job? It is B, because it names an action and what the action is done to. A is only a label, and C belongs to the chip itself, not to the operating system.

The processor and the memory come first. A processor core runs one program's instructions at any instant, never two. Yet a laptop with one core can have a music app, a word processor and a browser all open and all working. With only one core, how could all three programs seem to run at once? The operating system schedules them. A process is a program that is running, and each process gets a short turn on the processor, then the operating system switches to the next, in an order it decides by priority. The turns are so short and so frequent that every program appears to run at the same time. That appearance is multitasking. What the processor does with each instruction once it has its turn is a separate topic, the fetch-execute cycle, in the chapter on the processor. Memory management comes next. The operating system allocates a section of memory to each program that is running, and frees that space when the program closes. Picture a badly written game that tries to write data into the section of memory a browser is using. Which job stops the game writing into that memory, and how does it stop it? Memory management. Every program is held inside its own allocated space, so the game is blocked from the other program's part.

Next, the devices: keyboards, printers, webcams and speakers. Peripheral management means the operating system controls how the computer communicates with each input and output device. It does that through device drivers. A driver is a small program, one for each device, that translates between the operating system and that device. That is how the operating system can send a document to any printer without knowing how the printer works inside. One student, asked to describe a task peripheral management performs, wrote that it manages the peripherals. Why does 'it manages the peripherals' fail to describe a task? It repeats the question's own words. A task is something that happens, such as a driver translating the operating system's instructions so a printer can print them. The fix is the driver. Name it, and add what it lets the computer and the device do, which is communicate with each other. Files are the next job. File management means the operating system names, saves, moves and deletes files, and organises them into folders inside folders. That arrangement is a hierarchy. The root directory sits at the top, then folders, then subfolders, so every file has one path from the root down to it. A student writes that file management tidies the disk so that files load faster. What is wrong with that description of file management? It describes defragmentation, which is a utility program, covered in the video on Utility software. File management is naming, moving, saving and organising files into folders. A report on another paper puts it like this. "Misconceptions included confusion with defragmentation of filing systems or the scheduling of processes, presumably because these are both topics covered under the umbrella of operating systems." Instead, keep each one in its own place. Scheduling belongs to the processor job, defragmentation to a utility, and file management to organising files into the folder hierarchy.

Now the people. User management means the operating system gives each person their own account, login and access rights. An administrator decides who has an account and what each account may open. The operating system then enforces those rights, checking them every time a user tries to open a file. That is what security means as an operating system job: only the right people reach the right files. Some courses call it security and some call it user management, and your board's word is here. A family of four shares one laptop at home between them. Why does that family laptop need user management, and what can an administrator do? So that several people can use the same computer, each with their own files kept private. An administrator can add or remove users, and set what each one is allowed to access. One examiner's report notes a slip here. "A number of candidates were of the opinion that the operating system granted permissions directly to the users." The fix is to keep the two roles apart. The administrator sets the permissions, and the operating system enforces them. Then add the reason, so that several people can share one computer. One course also lists the user interface by name. It is how a person communicates with the computer: a graphical interface with windows, icons and a pointer, or a command line where instructions are typed. And one course lists managing applications. The operating system installs, starts and stops programs, and gives each one access to the resources it needs.

Time to put all seven jobs to work. Five tasks to match. Renaming a folder. Keeping a music app playing while a document is typed. Sending a document to the printer. Giving a second person their own login. Stopping one program overwriting another program's data. The test for each one is the thing being shared out, and who gets it. Which operating system job carries out each of those five tasks? Renaming a folder is file management. Keeping the music playing is multitasking, part of processor management. The printer is peripheral management, through its driver. The second login is user management. Keeping data apart is memory management. One examiner's report, on a question where students named the function behind each task, says this. "Multitasking was most commonly incorrect, with a range of responses commonly including peripheral or user management." The fix is to ask what the task is using. Programs taking turns are sharing the processor's time, so it is multitasking, whatever device happens to be involved. Last, two halves of one student's answer: the operating system handles memory, and it handles security. Rewrite both halves of that answer with a precise verb and an object. It allocates memory to each running program and keeps programs out of each other's space. And it checks each user's access rights before letting them open a file. Those two vague halves come from a report. "The functions of an operating system are listed in the Specification but many students used very imprecise terminology in their answers, such as ‘handles memory’ or ‘handles security’." The fix is a verb and an object for every job: allocates memory, checks access rights, moves a file. Handles, on its own, describes nothing.

That laptop juggling music, tabs and a save is still running, and this time you are the one explaining it. Why does a computer need an operating system at all? Because many programs and users share one processor, one memory and the same devices, and something has to manage those resources between them. Now a new task: a game asks to use a USB controller. Which job handles that? Peripheral management. A driver for that controller translates its signals for the operating system, so the game can read the buttons. Next: staff lock a school folder so pupils cannot open it. Which operating system job? User management, with security. The administrator sets the access rights, and the operating system enforces them. Another: moving a photo into a new folder. Which job, with a verb and an object? File management. It moves the file to a new place in the folder hierarchy, somewhere below the root directory.

A thumbs-up on this one is your own record, not a favour to anybody. If you could match any task to its operating system job, with a verb and an object, that's in the bag. If a couple of those jobs still blur together, save the video and carry on. The rest of the chapter keeps using the operating system, so it comes back round.

Next in the chapter: Utility software, the tools that sit beside the operating system and look after the machine.

For more, visit scholafly.com, or watch the next video.

Related terms

For: AQA GCSE 8525, Edexcel GCSE 1CP2, OCR GCSE J277

On the specification

BoardSpecStatement
AQA GCSE 85253.4.3Software classification
Edexcel GCSE 1CP23.2.1Explain the purpose and functionality of an operating system in file, process, peripheral and user management.
OCR GCSE J2771.5.1Operating systems
For teachers

This GCSE Computer Science lesson teaches what an operating system does. By the end, students should be able to explain why a computer needs an operating system and describe each of its management functions with a precise verb and object - managing the processor and multitasking, memory, peripherals through drivers, files, users and security, and the user interface - so that each one could be matched to a task it performs. It works through five worked examples and the mistakes examiners report, and suits Foundation and Higher tier students.