Functions of OS

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. Functions of OS

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.