An operating System (OS) is an intermediary between users and computer hardware. It provides users an environment in which a user can execute programs conveniently and efficiently.
In technical terms, It is a software which manages hardware. An operating System controls the allocation of resources and services such as memory, processors, devices and information.
An operating system is a program that acts as an interface between the user and the computer hardware and controls the execution of all kinds of programs.