Mapa mental
Processes
Conteúdo do mapa
Processes
Lifecycle
- User causes process start
- Single
- Multi
- Pseudo parallelism
- Multiple processes appear to run concurrently
- Pseudo parallelism
- Process enters ready list
- Moves to head
- Next process to be executed
- Ordered by scheduling algorithm
- Highest priority nearest head
- Moves to head
- Program pauses
- Program ends
- Completion
- Crash
- Segmentation fault
- Termination
- Memory and resources released
- Blocked
- Pre-empted
- Program ends
- Teardown
- Process states saved
- Saved in RAM / disk
- 1st 1GB of memory reserved for kernel
- Saved in RAM / disk
- Process states saved
- Executes next process at head of ready list
- Until block/pre-empt/crash/termination
- User causes process start
Execution Rings
- User mode
- Restricted set of instructions
- Kernel mode
- Access to all hardware/memory
- User mode
Process Management
- Scheduling algorithms
- Dictates order of ready list
- Pre-Emptive
- SJRF
- RR
- PQ
- Non-Pre-emptive
- FCFS
- SJF
- PP
- Blocking
- Moved to block list
- Waits on user input / access to memory
- Waits for I/O resource
- Moved to block list
- Pre-emption
- OS gives each process a quantum of CPU time
- Amount of time until process is moved to tail of ready list
- Context switching
- Registers etc of current process saved
- Machine register values
- File table of open files
- System call state
- Accounting info
- Registers etc of next process loaded
- Registers etc of current process saved
- OS gives each process a quantum of CPU time
- Scheduling algorithms
Creation
- Forking
- Program loaded
- Memory allocated to code/data/stack
- Program addresses mapped to actual addresses
Execution
- Next instruction in EIP
- Procedure call causes return add & params to be pushed onto stack
- Entry point loaded into EIP
Threads
- Multi-Threading
- Better responsiveness - aspects of process can continue
- Shares memory - reduces demand on resources
- More efficient use of multiple CPUs
- Multi-Threading
Process Control Block
- Details of each process stored
- PID
- Uniquely identifies each process to the OS
- PID
- Status
- Scheduling parameters
- Pointer to memory image
- Details of each process stored
Informações
- Descrição
- Operating Systems Mapa Mental sobre Processes, criado por prxd33 em 20-04-2014.
- Criado por
- prxd33
- Visualizações
- 11
- Avaliação