×

Operating System Services

The Operating System provides various types of services:  

  1. I/O operation
  2. Program execution
  3. File system manipulation
  4. Communication
  5. Error Handling
  6. Resource allocation
  7. Accounting
  8. Protection
Operating System Services

1. I/O Operation: - To execute a program, needs I/O, which consists of a file, or I/O device. Due to the protection and effectiveness, users are not able to manage the I/O device, so the operating system helps the user to perform I/O operations such as read and write operations in a file. The Operating system offers the facility to access the I/O device when needed.

2. Program execution: - Operating System is responsible for loading a program into memory and then executing that program. Operating System helps us to manage different tasks from user programs to the system programs such as file server, name server, printer spooler, etc. Each of these tasks is sum-up as a process. A process may consist of complete execution context like data to manipulate, OS resources in use, registers, code to execute, etc.

The operating system performs the following tasks for program management:

  • Executes the program.
  • Load the program into memory.
  • Operating system offers a procedure for process synchronization.
  • Operating system offers a procedure for deadlock handling.
  • Operating system offers a method for process communication.
  • Manages the program’s execution.

 3. File System Manipulation

A file is a collection of information. For long term storage computer stores, the file is placed on the disk, and disk is the secondary storage. For example - Magnetic disk, CD, DVD, Magnetic tape. Each storage media has different properties or capabilities such as capacity, speed, data access, and data transfer method.

For easy and effective usage, the File system is organized in the form of directories, and the directories contain files and other directions.

The operating system performs the following activities for File System Manipulation.

  • It offers an interface so that we can easily create and delete files.
  • It offers an interface to create and delete directories.
  • It offers an interface so that we can create a backup of the file.
  • With the help of the operating system, we can access the program for performing an operation on a file.

4. Communication

The Operating system offers the facility of communication. The Process requires information exchange with another process. For executing a process on the same computer or different computer systems, it communicates with the help of the operating system. Communication between the processes is done with the help of message passing and shared memory.

5. Error Handling

The Operating system provides the service of error handling. An error may arise anywhere, like in I/O devices, Memory, CPU, and in the user program. The Operating system takes appropriate action for each error to ensure consistency and correct computing.

6. Resource allocation

In a system, when multiple jobs are executing concurrently, then resource allocation must be needed for each job. Resources include main memory storage, file storage, CPU cycles, and I/O devices. The operating system handles every type of resource by using schedulers. With the help of CPU scheduling, the task of resource allocation can be performed.

7. Accounting

Accounting service of the operating system helps to keep track of the system usage means which users use the resources for how much time and what type of resources are used by the system.

8. Protection: - If the computer system has different users and permits the concurrent execution of the various processes, then it is must to protect the processes from one another’s activities.


Related Topics

Operating System Tutorial

What is an Operating System? An Operating System is a System Software that handles the resources of a computer such as computer hardware and software and offers frequent services to the...

7 minutes read.

Producer-Consumer Problem in OS

What is Producer-Consumer Problem? The Producer-Consumer problem is a classical problem. The Producer-Consumer problem is used for multi-process synchronization, which means synchronization between more than one processes. In this problem, we have one producer...

4 minutes read.

Segmentation in Operating System

The term segmentation in operating system refers to the division of computer memory into segments. Segmentation is a technique used by many modern operating systems to provide better memory management....

4 minutes read.

Distributed Shared Memory

Distributed Shared Memory is a process of managing memory over more than one node and makes inter-process communication which transfers to end users. It is a mechanism that allows user...

2 minutes read.

Memory Management in Operating System

The term "Main Memory" refers to the computer's internal physical memory. It is distinguished from external mass storage devices like disk drives by using the term "main." RAM is another...

4 minutes read.

Deadlock Prevention in Operating System

Deadlock Prevention The conditions which we used for deadlock prevention are: Mutual ExclusionHold and WaitNo PreemptionCircular Wait 1. Mutual Exclusion: - From the resource point of view, the mutual exclusion means that simultaneously more...

4 minutes read.

Trap vs Interrupt in Operating System

What is Trap in Operating System? A trap is a synchronous interrupt used to perform functionality when an error occurs in a user process. A trap in an operating system can...

4 minutes read.

Difference between C-LOOK and C-SCAN Disk Scheduling Algorithm

Disk scheduling is used by operating systems to arrange the arrival of I/O requests to the disc. I/O scheduling is another name for disc scheduling. Disk scheduling is necessary because...

4 minutes read.

SCAN Disk Scheduling Algorithm

SCAN Disk Scheduling Algorithm The SCAN disk scheduling algorithm is another type of disk scheduling algorithm. In this algorithm, we move the disk arm into a specific direction (direction can be moved towards...

4 minutes read.

Free Space Management in Operating System

What is Free Space Management? The system always keeps the records of the free disks blocks for allocating space to files when they are created. To use the space free from...

4 minutes read.

Banker’s Algorithm in Operating System

What is Banker’s Algorithm? Bankers algorithm is an algorithm which is used for deadlock avoidance and resource allocation. It was established by Edsger Dijkstra. The reason behind the name ‘banker’s algorithm’...

8 minutes read.

SJF Scheduling in OS

Shortest Job First (SJF) Scheduling in OS Shortest Job First is a Preemptive or Non-Preemptive algorithm. In the shortest job first algorithm, the job having shortest or less burst time will...

4 minutes read.

HRRN Scheduling in OS

Highest Response Ratio Next (HRRN) Scheduling in OS Highest Response Ratio Next Scheduling is a Non-Preemptive Scheduling algorithm. This algorithm provides the benefits of the shortest job first scheduling algorithm and also removes...

6 minutes read.

Deadlock Detection and Recovery

Deadlock Detection and Recovery In deadlock detection and recovery, to avoid or prevent a deadlock, the operating system uses various methods. For checking deadlock, an operating system continuously monitors the system. Then also,...

2 minutes read.

Lock Variable Mechanism | Operating System

Lock Variable Mechanism The Lock variable mechanism is a synchronization mechanism that is implemented in a user mode. It is a software procedure. Lock variable is a solution for busy waiting that can be...

3 minutes read.

Ubuntu Operating System

Ubuntu Operating System Ubuntu is an open-source and a Linux based operating system. Ubuntu is developed for the Network Servers, Computers, and Smartphones. The Ubuntu operating system was developed by Canonical...

3 minutes read.

Difference between Multi-programming and Multitasking

Difference between Multiprogramming and Multitasking         Multiprogramming  Multitasking In Multiprogramming, at the same time, we can run the multiple processes concurrently on one...

2 minutes read.

Advantages of UNIX Operating System

What is UNIX OS? UNIX is a family of multitasking, multiuser operating systems that are used on a wide variety of computer platforms. It was developed in the late 1960s and...

4 minutes read.

Swapping in Operating System

Swapping in operating systems refers to temporarily transferring a program or process from main memory to a secondary storage device, such as a hard drive or solid-state drive when there...

4 minutes read.

Priority Scheduling in OS

Priority Scheduling is a type of CPU Scheduling algorithm which is used for process scheduling. In Priority Scheduling, we assign some priorities to each process. The process which has higher priority among all...

5 minutes read.