|
Deadlocks
|
|
|
Causes
|
Mutual exclusion, no preemption, hold and wait, circular wait
|
|
Prevention
|
Eliminate on of the conditions. Direct eliminates circular waiting, indirect the other 3. Very conservative
|
|
Avoidance
|
Dynamic decision if current resource request will cause deadlock. Bankers algo
|
|
Detection
|
Tests for deadlocks, consumes cosiderable cpu time, liberal with resources.
|
|
Starvation
|
Where process is overlooked by scheduler even though it's ready to run.
|
|
Partitioning
|
|
|
Fixed equal
|
Program to big, use overlays, inefficient, internal fragmentation
|
|
Fixed unequal
|
Chooses the smalles space it can fit in, might lead to swapping,memory might go unused, internal fragmentation
|
|
Dynamic
|
Each process gets exactly what it needs, small holes, external fragmentation, compact
|
|
Best fit
|
Chooses the block closest in size
|
|
first fit
|
Chooses the next block which can hold the process. scan from beginning
|
|
next fit
|
Starts for current position, finds block next available large enough block.
|
|
Levels of scheduling
|
Long term, medium term, short term.
|
|
Long term
|
Controls what programs are admitted to the system for processing
|
|
medium term
|
if process starts in swap out it is added to medium term scheduler
|
|
Short term
|
when program becomes a process it is added to the short term scheduler
|
|
Preemptive and non preemptive
|
Preemtive can take resources, non preemptive can not
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.