Paging Flashcards

1
Q

Definition of FIFO

A

(First come first serve)

Simplest page replacement algorithm. The frame that has been in the memory the longest is replaced

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

Pro’s/Con’s of FIFO

A
  • has the most number of page fault
  • suffers from Beladys anomely
  • used in OS
  • simplest to implement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define LRU

A

The page that is replaced is the least recently used

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

Pro’s/Con’s of LRU

A
  • doesn’t suffer from beladys anomely
  • used in OS
  • okay to implement
  • more page faults than OPT and less page faults than FIFO
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define OPT paging

A

The page who’s next use is furthest in the future is swapped out

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

Pro’s / Con’s of OPT

A
  • least number of page faults
  • doesn’t suffer from beladys anomely
  • not used in OS
  • Difficult to implement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is paging and swapping?

Where is it placed?

A

Management strategies

In the main memory for execution

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

Pro’s / Con’s of Demand Paging

A

Virtual memory management method, the o/s copies a disk page to the physical memory if there has been attempts to access the page or if it’s not in the memory

+ allows many processes to run in OS

  • les flexible as it moves entire process back and forth from main memory to back store
  • allows less processed to stay in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Pro’s / Con’s of Swapping Paging

A

Copying the entire process address space to the swap device

+ allows memory address space of process to be non-contagious

+ more flexible as only pages of a process are moved

+ allows more processes to stay in memory

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

Paging

Why is it used

A

Memory management method where a computer stores and retrieves data from the secondary storage to use in the main memory

Ram sizes are not increasing but the number and complexity of programs and applications are which take up a lot of space in the RAM so paging is used to help manage this

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

What causes a page fault

A

When a program request data that isn’t in the real memory causing the o/s to retrieve the data from the virtual memory and load it into the ram

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