We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9
OPERATING SYSTEM SERVICES
Different operating systems can provide different set of
services. Some of the basic services provided by operating system are: 1. Program Execution: Operating system provides a convenient environment where users can run their programs. The Operating system performs memory allocation to programs, load them into appropriate location so that they can execute. The users need not to worry about all these tasks. 2. I/O Operations In order to execute a program, it usually requires an I/O operations. For Example: It may need to read a file and print the output When all these I/O operations are performed users cannot control I/O devices. All I/O are performed under the control of operating system. 3. File System Manipulation The execution of a program may involve reading data from a file or writing data to a file. The operating system provides all these operations and performs secondary storage management. The users just give commands to read or write a particular file, the rest of work is done by an operating system. 4. Communication The various processes executing on a system may need to communicate in order to exchange data or information. Operating system provides this communication by using the facility of message passing. In message passing, packets of information are moved between processes by the operating system. 5. Error Detection When various programs are executing on a system involving various resources, an error may occur. Error may occur in CPU and memory hardware ( such as a memory error or a power failure), in I/O devices and in user programs ( such as stack overflow, an attempt to access an illegal memory location). In such situation, the OS constantly monitors the system for detecting the errors. For each type of error, the OS takes the appropriate action to ensure correct and consistent computing. 6. Resource Allocation When multiple processes are running on a system or multiple users are logged on, large variety of resources may be used by each process or a user. These resources may be CPU cycles, main memory, files, I/O devices etc. The OS manages all these resources and uses different algorithms to satisfy the requirements of different processes or users. 7. Accounting When multiple resources are allocated to different processes in multiprogramming, the OS keeps track of which user or process has how many resources and of which kind. This kind of record keeping by an OS is known as accounting. 8. Protection When several processes are executing concurrently, it is important that different processes should not also interfere with OS. Thus, an operating system provides protection to ensure that all the access to system resources is controlled. An OS also provides security to the system by authenticating different users are allowed to access the system. The OS also defends the external I/O devices, including modems and network adapters from invalid access attempts.