An **operating system (OS)** is a collection of software that manages a computer's hardware and applications by allocating resources, providing common services, and acting as an intermediary between programs and hardware. It coordinates the execution of various tasks, including process management, memory allocation, file handling, and input/output operations, allowing multiple applications to run efficiently on the computer[1][2][4].