An operating system is a program that manages computer hardware and software resources and allows other programs to run. It controls memory, processes input/output, manages files and storage, and connects to peripherals like printers. Common operating systems include Windows, MacOS, Linux, and those found in devices like phones, game consoles, and servers. The main functions of an operating system are to schedule processes, provide a user interface, manage memory allocation, and control connected devices.