In the Computer System (comprises of Hardware and software), Hardware can only understand machine code (in the form of 0 and 1) which doesn’t make any sense to a naive user.
We need a system which can act as an intermediary and manage all the processes and resources present in the system.
An Operating System can be defined as an interface between user and hardware. It is responsible for the execution of all the processes, Resource Allocation, CPU management, File Management and many other tasks.
The purpose of an operating system is to provide an environment in which a user can execute programs in convenient and efficient manner.
Structure of a Computer System
A Computer System consists of:
- Users (people who are using the computer)
- Application Programs (Compilers, Databases, Games, Video player, Browsers, etc.)
- System Programs (Shells, Editors, Compilers, etc.)
- Operating System ( A special program which acts as an interface between user and hardware )
- Hardware ( CPU, Disks, Memory, etc)
What does an Operating System do?
- Process Management
- Process Synchronisation
- Memory Management
- CPU Scheduling
- File Management