Course contentsShow
← Computer Science
Lesson 1193 of 2,87228. Operating Systems FundamentalsFree lesson

What is an Operating System?

Define the OS as resource manager and abstraction layer between hardware and applications.

What is an Operating System?

What you'll learn: You'll discover what an operating system is and why every computer needs one to function.


The Core Idea

An operating system (OS) is the fundamental software layer that sits between your computer's hardware (CPU, memory, disk, keyboard, screen) and the applications you run (web browser, games, text editors). It has two essential jobs:

  1. Resource Manager – The OS controls and allocates hardware resources (CPU time, memory space, disk access) to different programs, ensuring they don't interfere with each other and that resources are used efficiently.

  2. Abstraction Layer – The OS hides the complex, messy details of hardware from application programmers. Instead of writing code to manipulate specific disk controllers or memory addresses, you simply ask the OS to "open this file" or "allocate memory," and it handles the hardware complexity for you.

A Helpful Analogy

Think of the OS as a building manager in an office tower:

  • Resource Manager role: The building manager schedules conference rooms, allocates office space, and ensures the elevator system serves all floors fairly.
  • Abstraction layer role: Tenants don't need to understand the electrical wiring, HVAC systems, or plumbing blueprints—they just flip switches, adjust thermostats, and turn on faucets. The building manager handles the complexity underneath.

Without an operating system, every application would need custom code for every piece of hardware, and programs would constantly crash into each other fighting over resources.


Key Takeaway: The operating system is the essential software manager that allocates hardware resources to programs and provides a simple, consistent interface so applications don't have to deal with hardware complexity directly.