OS LEcture 2
OS LEcture 2
`AZ21666666666666666666666
6666G\ SYSTEM
Objectives:
After going through this unit, you will be able to:
design begins.
We can view an operating system from several vantage
points. One view focuses on the services that the system
provides, another, on the interface that it makes available to
users and programmers; a third, on its components and their
interconnections.
OPERATING SYSTEM SERVICES
2. I/O operation
4. Communications
5. Error detection
Common service provided by the
operating system
1. Program execution: Operating system loads a program into
memory and executes the program. The program must be
able to end its execution, either normally or abnormally.
2. I/O Operation : I/O means any file or any specific I/O device.
Program may require any I/O device while running. So
operating system must provide the required I/O.
3. File system manipulation : Program needs to read a file or
write a file. The operating system gives the permission to the
program for operation on file.
1. Resource Allocation
2. Accounting
3. Protection
A) Resource Allocation :
• If there are more than one user or jobs running at the same
time, then resources must be allocated to each of them.
Operating system manages different types of resources require
special allocation code, i.e. main memory, CPU cycles and file
storage.
• There are some resources which require only general request
and release code. For allocating CPU, CPU scheduling
algorithms are used for better utilization of CPU.
• The accounting data may be used for statistics or for the billing.
It also used to improve system efficiency.
C) Protection :