An operating system manages a computer's hardware resources and provides services to application software. The main functions of an operating system are to control the computer's processor, memory, storage, devices, and provide a user interface. It performs tasks like managing processes, allocating memory, reading and writing files to storage, and translating signals between hardware and software.