Os 3
Os 3
Vikram Verma
AP
PIET , Samalkha
Syllabus
Reference Books:
• Multiple parts
– The program code, also called text section
– Current activity including program counter, processor registers
– Stack containing temporary data
• Function parameters, return addresses, local variables
– Data section containing global variables
– Heap containing memory dynamically allocated during run time
Process Concept (Cont.)
• Process is active
– Program becomes process when an executable file is loaded into
memory
• Example,
– In a browser, multiple tabs can be different threads.
– MS Word uses multiple threads: one thread to format the text,
another thread to process inputs, etc.
Each thread has its own PC , stack and registers , but sharing common
code, data, and certain structures such as open files.