Functions of Operating System
Dr. Shashi Kant Gupta
Professor, Department of CSA, SOET
Outlines
• Prerequisite of topic
• Problem Objective
• Operating System
• Functions of Operating System
• File System, Communication and Error Detection
• Resource Allocation and accounting
• Protection and Security
• Learning Outcomes
• Assignment
1
Prerequisite of Topic
• Basics of Operating System
• Goals of Operating System
Problem Objective
• Functions of Operating System
• Error Handling
•File Systems
<SELO: 5,20> <Reference No.: R1, R2>
Important Functions of Operating System
1. Program Execution
2. I/O Operations
3. File Systems
4. Communication
5. ResourceAllocation
6. Accounting
7. Error Detection
8. Protection and Security
<SELO: 5,20> <Reference No.: R1, R2>
Operating System Functions
<SELO: 5,20> <Reference No.: R1, R2>
Program Execution and I/O Operations
• Operating systems provide an environment for execution of programs
and services to programs and users
• User interface –
Command-Line (CLI),
Graphics User Interface (GUI)
• Program execution –
Load a program into memory and to run that program, end execution,
either normally or abnormally
• I/O operations -
Arunning program may require I/O, which may involve a file or an
I/O device
<SELO: 5,20> <Reference No.: R1, R2,R3>
File System and Communication
File-system manipulation –
• Programs need to read and write files and directories, create and delete
them, search them, list file Information, permission management.
Communications –
• Processes may exchange information, on the same computer or
between computers over a network.
• Communications may be via shared memory or through message
passing
<SELO: 5,20> <Reference No.: R1, R2>
Error detection
• OS needs to be constantly aware of possible errors
• May occur in the CPU and memory hardware, in I/O devices, in user
program
• For each type of error, OS should take the appropriate action to ensure
correct and consistent computing
• Debugging facilities can greatly enhance the user’s and programmer’s
abilities to efficiently use the system
<SELO: 5,20> <Reference No.: R1, R2>
Resource Allocation and Accounting
Resource allocation –
• When multiple users or multiple jobs running concurrently,
• resources must be allocated to each of them.
• Many types of resources -CPU cycles, main memory, file storage, I/O
devices.
Accounting –
• To keep track of which users use how much and what kinds of
computer resources
<SELO: 5,20> <Reference No.: R1, R2>
<Page No.>
Protection and Security
Protection :
Protection Involves ensuring that all access to system resources is
controlled.
Security
Requires user authentication, extends to defending external I/O devices
from invalid access attempts
<SELO: 5,20> <Reference No.: R1, R2>
Assignment
1. Tabulate Various Functions of Operating System.
<Page No.>
Learning Outcomes
• To Understand about the various functions of Operating System
<Page No.>
References
1. A. Silberschatz, P. B. Galvin, G. Gagne; Operating System
Concepts; Wiley Publishing.
2. A. S. Tanenbaum; Modern Operating System; PHI Publication.
<Page No.>
SELO
5. Design Thinking ability
20. Ability to be a lifelong self learner.