Professional Documents
Culture Documents
I/O organization
Interfacing I/O Devices with CPUProgrammed I/O, Interrupt driven I/O,
DMA controlled I/O
OPERATING SYSTEM SUPPORT
Overview, Scheduling-FCFS, SJF,
Priority, Mutual exclusion, Memory
management.
Computer System
Components
1. Hardware provides basic computing resources (CPU,
memory, I/O devices).
2. Operating system controls and coordinates the use
of the hardware among the various application
programs for the various users.
3. Applications programs define the ways in which the
system resources are used to solve the computing
problems of the users
4. Users (people, machines, other computers).
Operating Systems
Just like a resource manager
Should know
a.What are the resources in the computer system
b.What is meant by management of all these systems
Resources:
1.CPU
2.Main Memory:Question of management comes.Again the
responsibilty of OS
3.Secondary storage
4.I/O Devices
responsible of the OS is to manage the above resources.
CPU or Process management:
Waiting Time
Turn around Time
What is an Operating
System?
A program that acts
as an intermediary between a
user of a computer and the computer hardware.
Operating system goals:
Execute user programs and make solving user problems
easier.
Make the computer system convenient to use.
An OS is a Resource
Multiple users Allocator
get all computing resources
simultaneously:
Cpu time
Memory (ram, swap, working set, virtual,..)
File system (storage space)
I/O devices (display, printers, mouse,..)
Clock
Resource Allocation :
Accounting :
Protection
Operating System
Components
Modern operating systems share the goal of
supporting the system components. The
system components are :
1. Process Management
2. Main Memory Management
3. File Management
4. Secondary Storage Management
5. I/O System Management
6. Networking
7. Protection System
Scheduling System
A scheduling system allows one process to
use the CPU while another is waiting for
I/O, thereby making full use of otherwise
lost CPU cycles.
The challenge is to make the overall
system as "efficient" and "fair" as
possible, subject to varying and often
dynamic conditions, and where "efficient"
and "fair" are somewhat subjective terms,
often subject to shifting priority policies.
CPU Scheduler
Preemptive Scheduling
Scheduling Criteria