Explain operating system services
In these blog we will see what are the services provided by an operating system to the programs and the user of those programs.
OS give an environment for the execution of the program it give certain service to the program and to the user of that program.
Type of OS:
1. User Interface: It is something that allow the user to interact with OS or with the computer itself. Every operating system has an user-interface like command line interface also know as CLI or graphical user interface (GUI).
2. Execution: We know what are programs and what is software. OS provide a way for the execution of the program mean that you can run or execute your program and software must be capable to load the program into memory and run the program.
3. I/O operation: Here a user cannot directly control the input/output device. Now you might be thinking that when you are using keyboard or mouse and action is happening on the screen with your control than you are wrong their is an OS in between you and your system which control the I/O devices.
4. File management system: There are many file in here that OS needs to control like how these files need to be stored or managed. For example sometime we need to create a file, delete, modify, or search all these is controlled by OS, but there are some file which are not accessible to every program even to the users because there is restriction on some files which is also managed my OS.
5. Communication: By the name itself it tell what it means. But in OS communication happen between processes. There are many processes that needs to communicate with each other to exchange information with another processes, communication can happen between same computer or different computer which are connected by a computer network. The processes which are present in the same computer can communicate with each other and the processes which are in same network can communicate with different computer and processes. All of these is controlled by the OS.
6. Error: There are many error that can occur while working on a computer and computer must know how to handle those errors like CPU error or may be I/O device error and many more. For example a printer run out of paper and stop working the computer need to know how to deal with these kind of error and provide an consistent performance or can be a debug error which is also a part of OS.
7.Memory (resource) allocation: what do you mean by resource allocation ? To allocate resource to different processes for different users it can be of any type like CPU, files, I/O device, main memory. There are many processes running in the system and all these processes require certain resources at certain point of time OS must help these processes which are waiting for the resources and the allocation must be done in a way that every processes get every resource there should not be a processes which is waiting for the resource and never get it. Also there should be no resource which is holding a processes and never release it. All these is done so that the computing can take place in an efficient manner.
8. Accounting: Now we want to keep the track of which user use the CPU, I/O device etc. The requirement for accounting is simply for accumulating usage statistics it can be a valuable tool for researchers who wise to reconfigure the system.
9. Security and protection: our data need to be secured and everything needs to be protected from the virus. Security doesn't mean to just protect the internal data, the data needs to be protected from outsider as well mean security of network adapter, internet, routers etc. protection and security need to be implemented throughout the system.
0 Comments