Operating system works like as bridge in between hardware and software, and primary purpose of an operating system is manage all resources of hardware and software that are connect with computer. Without operating system all computer system are helpless, because operating system create the interface between user and hardware. When user give any instruction to computer then operating system transform these instructions in to binary form such as 0 and 1, because computer systems are not able to understand directly our commands. Computer can understand only machine language.
Now, explain purpose of an operating system for boot up entire system with the help of boot able terminal like example When power turn on then micro processor chip start to install the machine code with the help of RAM to Flash ROM (Read Only Memory). Operating system allow to this code to initialize for all components that are associative with computer, and this type of code implemented by BIOS(Basic Input/output System) in the first sector on the starting of Disk.
The operating system must aware about Memory Management Unit, Power Management Unit, Task State Segment, and other unit also. With using processor, the operating system handles all these logical parts, and initializes them.
Now, one question can arise in your mind that what are the three main purpose of an operating system. Almost many purpose of operating system but there are some main purpose of an operating system such as:
- Handle Memory Management
- Perform all Loading and Execution task
- Peripheral Controlling
1. Handle Memory Management:
In the computer, many memory and data execute at a one time, so operating system provide the flexibility in between the memory and data during execution time because without operating system, computer can getting confliction between the data and all memories. So, memory management executes many activities such as Upgrading performance, Execution of multiple processes at a one time, and Utilization of memory space to all devices.
2. Perform all Loading and Execution task:
Operating system has responsible to load important programs and different libraries with the help of loader that is very necessary part of the O/S. Its primary task feed the programs in the memory (such as RAM) for execution the all instruction without more delay. Operating system is supportable to virtual memory, in which loader have not actually the master copy of the content, because loader only allow the virtual memory subsystem that create the interface between that memory part which having running program’s code and data of associated executable content.
3. Peripheral Controlling:
Every devices of the computer have own device driver that is piece of the programming code. These types of the drivers create the interface in between operating system and devices, and operating system having the all control of drivers . All drivers execute on the kernel region of the operating system, and device drivers have many rights such as Open, Close, Read, Write, and more