An operating system manages all other programs and applications on a computer. It performs basic tasks like recognizing input/output, tracking files, and controlling devices. There are four main types of operating systems: single-user single-task, multi-user multi-task, real-time operating systems for machinery, and single-user multi-task which allows one user to run multiple programs at once, like Windows and MacOS.