- Foundation
- About 12 min
- 5 practice questions
What an operating system does: its main management jobs
List the jobs of an operating system: processes, memory, files, devices, security and the user interface, and match each job to an everyday example.
If something looks wrong, please tell us.
You already know that the operating system is the most important system software. This lesson looks inside it. An operating system (OS) is best pictured as a manager: it decides which program gets the processor, where each program sits in memory, where files are stored and how devices are shared. Exam questions usually ask you to name the job that matches a situation.
The main jobs of an operating system
| Job | What it manages | Everyday sign |
|---|---|---|
| Process management | Which program uses the processor, and for how long | Several programs seem to run together |
| Memory management | Giving each program a share of RAM and taking it back | A new program opens only if there is room |
| File management | Naming, storing, finding and protecting files and folders | Files sit inside folders on a drive |
| Device management | Input and output devices, using their drivers | A printer prints when you click Print |
| Security management | Who may log in and what each user may do | A password is asked at sign-in |
| User interface | How the user gives commands and sees results | Icons, windows or typed commands |
Process management and multitasking
A process is a program that is currently running. A computer has one or a few processor cores, yet you can listen to music, type a document and download a file together. The OS makes this possible by multitasking: it gives each process a very short turn on the processor, called a time slice, and then switches to the next. The switching is so fast that everything appears to run at once. The part of the OS that decides whose turn it is is called the scheduler.
Memory management
Programs and the data they use must be in RAM while they run. The OS allots memory to each program, keeps programs from overwriting each other and frees the space when a program closes. When RAM becomes full, many systems use virtual memory: a part of the hard disk or SSD is used as an extension of RAM. This avoids a crash but makes the computer slower, because disks are much slower than RAM.
File management
The OS keeps files in folders (also called directories) arranged in a tree. The full address of a file is its path. A file name often ends with an extension after a dot, such as .docx or .jpg, which tells the OS which program normally opens it.
Worked examples
Example 1. Five programs are open and the OS gives each a time slice of 20 milliseconds (illustrative figure). One full round takes 5 x 20 = 100 milliseconds. Each program gets 20 of every 100 milliseconds, which is 1/5 or 20 percent of the processor's time. This is process management by time slicing.
Example 2. A computer has 4 GB of RAM. The OS keeps 1 GB for itself and the user opens three programs needing 1 GB each. Memory used = 1 + 3 = 4 GB, so RAM is exactly full. If a fourth program is opened, the OS may move idle data to the disk as virtual memory, and the computer slows down. This is memory management.
Example 3. Read the path C:\Reports\2026\March.docx. The drive is C, the main folder is Reports, the sub-folder is 2026, the file name is March and the extension is docx, so it is a word processor document. Reading paths like this is file management.
The operating system is the manager: it shares the processor, memory, storage and devices among programs and users.
Key takeaways. The OS manages processes, memory, files, devices, security and the user interface. Multitasking works by time slices. Virtual memory trades speed for capacity. A path names a file's drive, folders, name and extension.
Check your understanding
-
1. Giving each running program a short turn on the processor in rotation is called:
- Time slicing
- Defragmenting
- Compiling
- Formatting
Show answer
Answer: A. Time slicing is the way multitasking shares the processor. Defragmenting rearranges file pieces, compiling translates code and formatting prepares a disk.
-
2. Which OS job is being done when RAM is shared among programs?
- File management
- Memory management
- Device management
- Security management
Show answer
Answer: B. Allotting and freeing RAM for programs is memory management. File management deals with stored files, and device management with hardware.
-
3. The part of a file name after the final dot, such as docx, is its:
- Folder path
- Drive letter
- Extension
- Folder name
Show answer
Answer: C. The extension tells the OS what kind of file it is and which program usually opens it. The path is the full address of the file.
-
4. A system uses part of the disk as if it were extra RAM. This is known as:
- Cache memory
- Virtual memory
- Read-only memory
- Firmware memory
Show answer
Answer: B. Virtual memory extends RAM using disk space. Cache is a small fast memory near the processor, and ROM and firmware hold permanent start-up instructions.
-
5. A password is asked before you can use a shared computer. Which OS job is this?
- Memory management
- Process management
- Device management
- Security management
Show answer
Answer: D. Controlling who may log in and what each user may do is security management. The other jobs manage RAM, processes and devices.
Sign in to keep track of the lessons you finish.