An operating system (OS) is a software program that manages computer hardware and software resources and provides common services for computer programs. It acts as an intermediary between computer applications and the computer hardware, enabling them to communicate and interact with each other. The OS performs tasks such as memory management, process scheduling, file management, and device control. Examples of popular operating systems include Microsoft Windows, macOS, Linux, and Android.