Operating System - Process Management Flashcards
The Process Concept
“A program in execution”
Program is passive entity stored on disk (executable file) when you start executing a program it becomes an active entity (a process)
You can have multiple processes for the same program.
One program can have several processes and each one will have its own context. True or false?
True
What are the three basic components of process?
- Executable program code
-Data related to the program
-Execution Context
Execution Context
Process ID, Group ID, User ID
Stack Pointer, Program Counter, CPU Registers
File Descriptors, Locks, Network Sockets
Heap
Dynamic Memory Allocation, can request memory while the program is running without knowing how many items or how much data you need to store in advance
How to calculate the maximum value or last address of x number of bits?
2^x - 1