An operating system is a set of programs that manages computer hardware resources and provides common services for computer programs. It controls input/output devices, allocates storage and processing time, and presents a simplified view of the system to users and programs. Key functions of an operating system include efficiently utilizing resources, isolating users from hardware complexities, and loading itself into memory on startup. Operating systems are designed for different operational modes like batch, time-sharing, and real-time to suit various usage scenarios.