What is the main purpose of an operating system?
An operating system is a type of system software that manages all of the resources of the hardware and the software. It also provides common services for computer programs. All computer programs, with the exception of firmware, require an operating system to function.
An operating system serves three main purposes; one is to ensure that a computer system performs well by managing the computer's resources, such as the central processing unit, memory, disk drives, and printers. The other is to provide an environment for the development and execution of programs. The third and sometimes the most important is to establish a user interface.