An operating system (OS) is software, consisting of programs and data, that runs on computers, manages computer hardware resources & provides common services for execution of various application software. For hardware functions such as input & output and memory allocation, the operating system acts as an intermediary between application programs & the computer hardware.