The Operating System provides a user-friendly environment for the creation and execution of programs and provides services to the user, There are Many Functions of OS Performed by the Operating System. The Main Functions of OS are –
1. Program Creation : The operating system provides editors, debuggers to assist the programmer in creating programs.
2. Program Execution : A number of tasks required to execute a program, the tasks include instructions and data must be loaded into main memory, i/o devices and files must be initialized, and other resources must be prepared. The OS handles these tasks for the user.
3. Input/Output Operations : A running program may require input and output. This i/o may involve a file or an i/o device. A user program can’t execute i/o operations directly, The OS must provide some means to do so.
4. Error detection : The operating system detects the different types of errors and should take appropriate action. The errors include memory error, power failure, printer out of paper.
5. Accounting : The operating system can keep track of which user use how much time and what kind of computer resources used. This record keeping is useful to improve computing services.
6. Protection : The operating system provides security mechanism to protect from unauthorized usage of files in the network environment.
Services of Operating System:
An Operating System provides many services to the user.
1. Program Creation
3. Program Execution
4. Controlled Access to files
5. System Access
6. Error detection and response
The number of jobs is executed by the CPU simultaneously that is called Multi-Programming. In Multi-Programming, the main memory consisting of some jobs at a time.
Advantages of Multi-Programming:
1. It can get efficient memory utilization.
2. CPU is never idle, So the performance of CPU will increase.
3. Throughput of the CPU may also increase.
Batch Processing :
A group of jobs batched together and execute at a time that is called Batch Processing.