Memory Management II Flashcards

1
Q

What is page demanding ?

A

When a new process starts, a page is loaded.
If an address is called that is outside the page it causes a page fault.
The new page is loaded, forming a resident set.

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

What is a page table ?

A

Every processes has a page table. Each page entry has a:
- Present bit (indicates if the page is in real memory)
- Modified bit (shows if the page has been modified)

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

What is virtual memory ?

A

Stores unused pages in swap space rather than on the physical memory. Page tables can be large and stored on secondary memory. Retrieving the pages is a lot slower than execution time.

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

What is a working set of pages ?

A

A set of pages a process will need in a given time.

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

What is thrashing ?

A

When there are too many processes the CPU spends time swapping pages instead of executing. This is fixed by balancing the number of processes and allocating memory wisely.

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

What are the main page replacement algorithms ?

A
  • Least recently used (LRU), replaces the page not used for the longest time
  • Not recently used (NLU), replaces the page not being used in a given time frame
  • First in first out (FIFO), replaces the oldest page\
  • Second chance algorithm, uses a circular list and a used bit to give pages a second chance before replacing them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why are paging and segmentation useful ?

A

Paging allows efficient memory use and optimization
Segmentation allows logical structuring and dynamic memory allocation

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

How does a paged segmented system work ?

A

Segment number points to a page table,
Page number points to page frame,
Displacement points to real memory address

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