Lecture 4 Flashcards
Thrashing
occurs when processes does not have enough
assigned memory page frames and the page fault rate is very high.
What can thrashing result in?
Low CPU utilization
OS spends most of its time swapping pages in and
out between main and secondary storage.
What can happen if the degree of multi-programming is too much?
causing uncontrollable
thrashing, and eventual crashing of all process execution (i.e. zero CP U utilisation).
When does thrashing occur?
High page fault rate, OS spends most its time handling page faults.
Specifically, thrashing is caused by a lack of main memory
How to prevent thrashing?
use local or priority page replacement
Dynamic memory allocation and load-balancing methods such as working sets.
Working set
Some minimum amount of pages needed for a process to behave well.
Sequential locality
a special case of spatial locality that occurs when relevant data elements are arranged and accessed linearly
Equidistant locality
a more general case that occurs when the linear traversal is over a longer area of adjacent data structures with identical structure and size,
accessing mutually corresponding elements of each structure rather than each entire structure