0% found this document useful (0 votes)
114 views11 pages

OS Services

The operating system provides several core services to both programs and users. It provides an environment for programs to execute, manages input/output operations between users and devices, allows manipulation of the file system including creating/deleting files and directories, facilitates communication between processes potentially on different computers, handles errors that occur during operation, allocates system resources like memory and CPU time, and protects processes and resources from unauthorized access.

Uploaded by

Rexline S J
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views11 pages

OS Services

The operating system provides several core services to both programs and users. It provides an environment for programs to execute, manages input/output operations between users and devices, allows manipulation of the file system including creating/deleting files and directories, facilitates communication between processes potentially on different computers, handles errors that occur during operation, allocates system resources like memory and CPU time, and protects processes and resources from unauthorized access.

Uploaded by

Rexline S J
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

OPERATING SYSTEM SERVICES

Operating System services

 An Operating System provides services to both the users


and to the programs.

 It provides programs, an environment to execute.

  It provides users, services to execute the programs in a


convenient manner.
Following are few common services provided
by operating systems.

 Program execution
 I/O operations
 File System manipulation
 Communication
 Error Detection
 Resource Allocation
 Protection
Program execution

 Loads a program into memory.


 Executes the program.
 Handles program's execution.
 Program must be able to end its execution normally or
abnormally(indicating error)
I/O operations

 Operating System manages the communication between user and


device drivers.
 the major activities of an operating system with respect to I/O
Operation.
1. I/O operation means read or write operation with any file or any
specific I/O device.
2. Program may require any I/O device while running.
3. Operating system provides the access to the required I/O device
when required
File system manipulation
 A file represents a collection of related information. Computer can store files
on the disk (secondary storage), for long term storage purpose
 major activities of an operating system with respect to file management.
1. Program needs to read a file or write a file.
2. The operating system gives the permission to the program for operation
on file.
3. Permission varies from read-only, read-write, denied and so on.
4. Operating System provides an interface to the user to create/delete files.
5. Operating System provides an interface to the user to create/delete
directories.
6. Operating System provides an interface to create the backup of file
system.
Communication
 operating system manages communications between processes.
Multiple processes with one another through communication
lines in the network.
 OS handles routing and connection strategies, and the problems
of contention and security.
 Following are the major activities of an operating system with
respect to communication.
1. Two processes often require data to be transferred between
them.
2. The both processes can be on the one computer or on
different computer but are connected through computer
network.
3. Communication may be implemented by two methods either
by Shared Memory or by Message Passing.
Error handling

 Error can occur anytime and anywhere. Error may occur in CPU,
in I/O devices or in the memory hardware.

 Following are the major activities of an operating system with


respect to error handling.
1. OS constantly remains aware of possible errors.
2. OS takes the appropriate action to ensure correct and
consistent computing.
Resource Management

 In case of multi-user or multi-tasking environment,


resources such as main memory, CPU cycles and files storage
are to be allocated to each user or job.
 Following are the major activities of an operating system
with respect to resource management.
1. OS manages all kind of resources using schedulers.
2. CPU scheduling algorithms are used for better utilization of
CPU.
Protection
 Considering computer systems having multiple users the
concurrent execution of multiple processes, then the various
processes must be protected from each another's activities.
 Following are the major activities of an operating system with
respect to protection.
1. OS ensures that all access to system resources is controlled.
2. OS ensures that external I/O devices are protected from
invalid access attempts.
3. OS provides authentication feature for each user by means of
a password

You might also like