Chapter 1 Introduction to OS
Chapter 1 Introduction to OS
INTRODUCTION TO
OPERATING SYSTEMS
CHAPTER 1 OVERVIEW
System Software
• Operating system
• Utility program
Application Software
3
Computer Software
Installing is the process of setting up software to work
with the computer, printer, and other hardware
4
1.1 OVERVIEW OF OPERATING
SYSTEM
A program that acts as in intermediary between a
user of a computer and the computer hardware.
GUI Based but wasting
Us CPU cycles
er
Vie
w
Operating
System
t em
s
Sy iew
V
Command Based but
save memory
spaces/CPU cycles
1.1.1 FUNCTIONS OF AN
OS
User
• Make the computer
system convenient to use.
Application
• Use the computer
program hardware in an efficient
manner.
Processor Manager
Memory Manager
Device Manager
File Manager
Tasks Performed by Each Subsystem
• Monitor its resources continuously
• Enforce the policies that determine who gets what,
when and how much.
⮚ E.g. Processor Manager has 2 sub-managers: Job Scheduler & Process Scheduler
Network
Manager
Device Manager
File Manager
responsibility for networking tasks
while working harmoniously with
every other manager)
1.3.1. Processor Manager
• Allocates CPU time
• Keeps track of each process status - waiting,
executing.
• Sets up necessary registers and tables
• Reclaims processor when job is finished and/or
time for job has expired
• Two levels of responsibility
⮚ Accepts or rejects the incoming jobs (handled by Job
Scheduler)
⮚ Decides which process gets the CPU and for how long
(Handled by the Process Scheduler)
1.3.2. Memory Manager
• Checks validity of each request for memory space
and if it is a legal request, allocates a portion of
memory that isn’t already in use.
• Sets up a table to keep track of who is using
which section of memory.
• Deallocates memory blocks once program
completes execution
• Protects OS memory space so that it cannot be
altered by other programs
1.3.3. Device Manager
• Monitors every device, channel, and control unit.
• Allocate in the most efficient manner all of the
system’s devices (e.g. printers, devices, ports, disk
drives) based on a scheduling policy chosen by
the system’s designers.
• Functions include:
■ Allocation of devices
■ Starting operation of devices
■ Deallocation of devices once job completes
1.3.4. File Manager
• Keeps track of each file in the system (e.g. data
files, program files, compilers, application programs)
Batch systems
Interactive systems
Hybrid systems
Embedded systems
Batch Systems
Example: