An operating system (OS) is system software that manages computer hardware resources—CPU, memory, storage, input/output devices—and provides common services for application programs: file systems, process scheduling, memory allocation, security, networking, and user interfaces.
Examples:
The OS is the intermediary between software and hardware—abstracting complexity, enforcing isolation, and enabling multiple programs to run concurrently on shared physical resources.