An operating system (OS) is a software that manages computer hardware and software resources and provides common services for computer programs. It acts as an intermediary between the computer hardware and the user, allowing the user to interact with the computer and run applications. The operating system performs tasks such as managing memory, controlling input and output devices, scheduling tasks, and providing a user interface. Examples of popular operating systems include Windows, macOS, Linux, and Android.