Skip to content
We areTOP 1%

What is an operating system, and what are its main functions?

EasyConceptOS Basics & System Calls
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

An operating system (OS) is the software layer between application programs and the computer hardware. It manages the hardware resources (CPU, memory, storage and devices) and gives programs a simple, safe way to use them. Its core part, the kernel, stays in memory and runs with full control of the machine.

  • Process management: creates and ends processes (running programs) and decides which one uses the CPU next, which is called scheduling.
  • Memory management: gives each process its own memory and stops it from reading or overwriting another's.
  • File and device management: organises data into files and folders and talks to hardware through device drivers.
  • Protection and security: user accounts, permissions and isolation, so one faulty program cannot bring down the whole system.

Example: when you open a music player, the OS reads the program from disk (file management), loads it into RAM (memory management), creates a process and shares CPU time between it and your browser (process management), and sends the sound to the speakers through a driver (device management). A useful analogy is a hotel manager who assigns rooms, divides staff time among guests and keeps every guest out of the others' rooms.

More in OS Basics & System Calls

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account