non-contiguous memory allocation Flashcards

1
Q

what is paging

A

it is a non-contiguous memory allocation method where the physical memory block is divided into parts known as FRAMES and these are linked to their logical addresses which are also divided into parts known as PAGES.
the process of linking the Pages to Frames is known as paging.

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

page table

A

it is a data structure which stores the mapping of the Pages to their respective frames.

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

Segmentation

A

Basically we are aware that many times the process is broken down into many parts and all the parts are not loaded in the memory at the same time which might cause issue during the execution.
therefore we only divide the processes into segments with their offset so that they can be traced.

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

what is virtual memory.

A

it is a concept of illusion, that is here the secondary memory is also considered to be as main memory.
this technique allows the users to execute the processes which are completely not in the main memory.

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

what is demand paging

A

demand paging is a concept where we only fetch the required pages of the project which are responsible for the main execution.
and as we go the required pages are swapped into the main memory from the secondary memory this is known as lazy pager.

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

what is a page fault

A

as we know only the required pages are present in the main memory, and the presence of the page in the main memory can be determined with the help of the Valid bit in the page table.
when the requried page is not present in the main memory then page fault occurs(OS trap).

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

belady’s anomaly

A

this is a phenomenon where the page fault increases with increase in the number of frames.

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

FIFO

A

it is a page replacement algorithm, where the page which comes first is replaced first.

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

optimal page replacement

A

replace the page will be farthest use in the future.(no implacable in real scenario)

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

least recently used and most frequently used

A

replace it with the least recently used page this can be implemented with the help of count variable or with the help of stack.
and we replace the most recently used for MFU page replacement algorithm.

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

What is thrashing

A

frequently swap-ing in and swap-ing out of the page is know as thrashing.
a system is thrashing when it is busy in servicing the page faults than executing processes.

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

Techniques to handle the thrashing.

A

1). working set model: based on the locality model ( locality : the pages which are being actively used.) we allocate enough frames only for the active pages. and fault occurs only when the it moves to a new locality.
2). page fault frequency: by establishing the upper and lower bounds.

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