CSC204 - Chapter 3.1
CSC204 - Chapter 3.1
CSC204 - Chapter 3.1
APPROACH OF
OPERATING
SYSTEM
CSC204
3.2Memory Management
3.2.1 Memory Hierarchy
3.2.2 Physical Memory
3.2.3 Virtual Memory
OVERVIEW
3.0 OS - User View
3.3I/O Management
3.3.1 I/O System Organization
3.3.2 I/O Communication Techniques
3.3.3 Direct Memory Access
3.3.4 Buffering
Active entity, which requires a set of resources, including a processor and special registers to
perform its function.
3.1 PROCESS
MANAGEMENT
3.1.1 Process Concepts
A process includes :-
Stack (contain temporary data)
Data section (contain global
variables)
Heap (memory that is automatically
allocated during process runtime)
2 types of process :-
O/S process = executes system codes
User process = executes user codes.
3.1 PROCESS
MANAGEMENT
3.1.1 Process Concepts
Process State
As a process executes, it changes state.
The state of a process is defined in part by
the current activity of that process.
Only one process can be running on any
processor at any instant.
However, many processes may be ready
and waiting for their turn to be processed.
3.1 PROCESS
MANAGEMENT
3.1.1 Process Concepts
Interrupt Exit
Ready Running
Job pool
Scheduler dispatch
I/O or
event I/O or event
completion wait
Handled by Process Scheduler Waiting
Multiprogramming
Batched and non-interactive
Multiprogramming increases CPU
utilization by organizing jobs so that the
CPU always has one to execute
The operating system keeps several jobs
in memory simultaneously
It picks and begins to execute one of the
jobs in memory
3.1 PROCESS
MANAGEMENT
3.1.3 Multi-tasking
Multiprogramming
Eventually, the job may have to wait for
some task to complete
In a multiprogrammed system, the OS
switches to another job and executes it
The first job finishes waiting and gets the
CPU back
As long as at least one job needs to
execute – the CPU is never idle
3.1 PROCESS
MANAGEMENT
3.1.3 Multi-tasking
Multiprogramming