Lecture 4 Flashcards

1
Q

Thrashing

A

occurs when processes does not have enough

assigned memory page frames and the page fault rate is very high.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can thrashing result in?

A

Low CPU utilization
OS spends most of its time swapping pages in and
out between main and secondary storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can happen if the degree of multi-programming is too much?

A

causing uncontrollable

thrashing, and eventual crashing of all process execution (i.e. zero CP U utilisation).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When does thrashing occur?

A

High page fault rate, OS spends most its time handling page faults.
Specifically, thrashing is caused by a lack of main memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to prevent thrashing?

A

use local or priority page replacement

Dynamic memory allocation and load-balancing methods such as working sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Working set

A

Some minimum amount of pages needed for a process to behave well.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sequential locality

A

a special case of spatial locality that occurs when relevant data elements are arranged and accessed linearly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Equidistant locality

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly