Professional Documents
Culture Documents
Process Description & Control: Ccs21203 Operating System
Process Description & Control: Ccs21203 Operating System
A. Introduction of Process
B. Process Description
Control structure
Types of tables
C. Process Control
i. Model of execution
ii. process Creation
iii. Process switching
iv. Change of process state
Less waiting
Threads are faster to create
or destroy
No separate address space
Overlap computation and
I/O
Could be done without
threads, but it’s harder
Kernel
Example: word processor
Thread to read from keyboard
Thread to format document
Thread to write to disk
• Elements of a process
Program code
May be shared with other processes that are executing the same
program
For each process there is a Process Control Block, PCB, which stores the
following
Process State
Process ID, and parent process ID.
CPU registers and Program Counter - These need to be saved and
restored when swapping processes in and out of the CPU.
CPU-Scheduling information - Such as priority information and
pointers to scheduling queues.
Memory-Management information - Page tables or segment tables.
Accounting information - user and kernel CPU time consumed,
account numbers
I/O Status information - Devices allocated, open file tables.
Process States
i. Memory table
Main memory
Physical
DRAM
SRAM
Virtual memory
Originally invented to accommodate programs requiring more
memory than the physical memory.
Replacement controlled by the operating system not hardware
ii) I/O tables
This may include scheduling and state information, data structuring, process
privileges, and resource ownerships.
Process Control
1. Model of execution
2. Process Creation and
termination
3. Process switching
4. Change of process state
5. Execution of operating system
Kernel Mode and User Mode
..\LECTURE\CHAPTER_1_forstudent.pptx
Page 29
Process creation and termination
Process spawning
When the OS create a process at explicit request of another
process
Parent process
The original process that create a process
Child process
Is a process created by the parent process
Process creation
Process Termination