How are you all , we are going to learn here about the services of Operating System in detail.
What does it mean services in Operating System?
At whatever point we enter some guidance to the PC framework it give a domain ,through which we can without much of a stretch execute the guidance which, we provide for the PC to play out the assignment.
There are following common type of services provided by Operating system
- Program Execution
- I/O Operation
- File System Manipulation
- Error Detection
- Resource Allocation
- Job Accounting
The main work of computer system is to provide an environment to the user for program execution.Where the user can easily execute the program.While running a program involve the allocation and deallocaton of Memory,then there comes CPU scheduling.
So the main purpose of program execution is to give an environment to the user for execution of program.
The main work of program execution are :-
- It allocate the program into memory.
- After allocation the program it execute the program.
- And it handles program execution.
- It provide an environment of synchronization.
- It also handle deadlocking.
Whenever a user give some instruction to the computer system ,and when computer system execute the program it give some output ,each program required an input and produce an output.
An I/O subsystem comprises of I/O gadgets and their related driver programming. Drivers conceal the determinations of explicit equipment gadgets from clients.
An operating system does following activity for I/O Operation:
- I / O operation means reading or writing an operation with any file or a specific I/O device.
- It provides access to the necessary I / O devices when required.
File System Manipulation
When dealing with a PC, a client for the most part needs to control different kinds of documents,for instance, opening a record, saving a report, and eradicating an archive from a limit circle. This is a critical task that is in like manner performed by the working structure.
A file represents a collection of related information. Computers can store files (secondary storage) on disk, intended for long-term storage. Examples of storage media include magnetic tapes, magnetic disks, and optical disc drives such as CDs, DVDs. Each of these media has its own characteristics such as speed, capacity, data transfer rate and methods of data access.
An operating system does following activity for File Manipulation:
- The program is required to read a file or write a file.
- The operating system allows the program to operate on file.
- Permission differs from read, write, deny, etc.
- The operating system provides the user with an interface to create / delete files.
The Operating System conveys between various kinds of procedures as shared memory. In performing multiple tasks conditions, forms need to speak with one another and trade their data. These procedures are made under a various leveled structure where the fundamental procedure is known as the parent procedure and the sub forms are known as kid forms.
On account of Distributive system that are an assortment of processors that don’t share memory, fringe gadgets, or a solitary clock, the working framework oversees interchanges between all procedures.Various techniques talk with each other through correspondence lines in the framework.
An operating system does following activity for Communication:
- Both processes can occur on one computer or on different computers, but are connected via a computer network.
- Communication can be implemented in two ways, either by shared memory or by message passing.
The operating system also deals with hardware problems.To stay away from equipment issues, the working framework consistently screens the framework (whenever found) to recognize mistakes and fix these blunders. The primary capacity of the working framework is to distinguish mistakes, for example, awful segments on the hard circle, memory flood and blunders identified with I/O gadgets.After detecting errors, the operating system takes an appropriate action for coherent computing.
Errors can happen anytime and anywhere. There may be an error in the I / O device or memory hardware in the CPU.
An operating system does following activity for error detection:
- It suddenly checks the error.
- It take appropriate action to solve that error.
In a multitasking environment, when multiple jobs are running at a time, it is the responsibility of an operating system to allocate the necessary resources (such as CPU, main memory, tape drive or secondary storage, etc.) to each process for its better use.
where there is need of multitasking and multi user, resources such as main memory, CPU cycle, and file storage have to be allocated to each user or job.
An operating system does following activity for resource allocation:
- The operating system manage the resource needed.
- It allocate all the resources available in an operating system for the users.
The operating keeps an account of all the resources accessed by each process or user.In performing multiple tasks, bookkeeping builds framework execution with the designation of assets to guarantee fulfillment to each procedure.
Considering a PC structure that has various customers and concurrent execution of different methods, different methodology must be protected from each other’s activities.
Security is a strategy for controlling a structure or program, strategies, or customers access to resources described by PC systems.
On the off chance that a PC framework has numerous clients and permits simultaneous execution of various procedures, the various procedures must be shielded from one another’s exercises.