Menu

Earn Premium with Referrals

Invite your friends and earn Premium rewards through our referral program.

See how it works and start inviting friends.

OS Fundamentals & Services
OS

OS Fundamentals & Services

Understand the core definition, goals, and services provided by an Operating System.

An OS is a program that manages a computer’s hardware and provides a basis for application programs. It’s the first software loaded when the computer starts (after the bootloader) and remains in memory at all times — this part is called the kernel.

Core Roles

  1. Resource Manager — allocates CPU time, memory space, disk storage, and I/O devices to competing programs. The OS decides who gets what, when, and how much.
  2. Extended Machine — presents a virtual interface that’s simpler than the raw hardware. Instead of tracking disk sectors, you use files. Instead of managing physical memory addresses, you use virtual addresses.

OS Services

ServiceWhat it does
Program executionLoad program into memory, run it, handle its termination
I/O operationsProvide a uniform interface for reading/writing devices
File systemCreate, delete, read, write, and organize files
CommunicationIPC between processes via pipes, shared memory, messages
Error detectionDetect hardware failures, software bugs, and handle gracefully
Resource allocationCPU scheduling, memory allocation, device assignment
ProtectionEnsure one process can’t corrupt another or the OS itself
AccountingTrack resource usage for billing or optimization

The Process View

The OS manages processes — programs in execution. It handles:

  • Creationfork(), exec()
  • Scheduling — which process runs when
  • Synchronization — coordinating access to shared resources
  • Communication — data exchange between processes

The Resource Manager View

Every request for CPU, memory, or I/O goes through the OS. It:

  • Multiplexes — shares one CPU among many processes via scheduling
  • Protects — prevents processes from accessing each other’s memory
  • Virtualizes — gives each process the illusion of having its own dedicated machine

Q: What is the process view of an OS?

A: The OS manages the lifecycle of processes — creating them (fork), scheduling them (which one runs on the CPU next), synchronizing them (preventing race conditions), and terminating them. The process abstraction lets each program think it has its own CPU and memory.

Q: What is the resource manager view?

A: The OS is a resource allocator — it decides which process gets the CPU, how much memory each process can use, and which process can write to disk. Without this management, programs would interfere with each other and the system would crash.

Q: List three essential OS services.

A: (1) Process management — create, schedule, terminate processes. (2) Memory management — allocate, track, protect memory. (3) I/O management — coordinate communication with external devices.

My Private Notes

Notes are auto-saved locally to this device.