Paging and Segmentation Flashcards

1
Q

What is a logical address?

A

The address generated by the CPU when a program is running.
It represents a location in the computer’s memory that the program wants to access.

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

What is a physical address?

A

A physical address is the actual location in the computer’s memory hardware (RAM) where data is stored.

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

What is paging?

A

A memory management scheme where we partition memory into small equal fixed-size chunks and divide each process into the same size chunks

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

The chunks of a process are called

A

pages

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

the chunks of memory are called

A

frames

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

For each process there is a page table

A

True

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

Formula for physical address

A

(frame*page size)+offset

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

Where is the page table kept?

A

In main memory

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

What is the PTBR?

A

Page table base register points to the page table

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

What indicates the size of the page table?

A

Page table length register

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

What is a TLB?

A

a memory cache that stores the recent translations of virtual memory to physical memory.

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

What is effective access time?

A

The total time it takes to access data from a system

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

EAT Formula

A

EAT=h(c+m)+(1-h)*(c+2m)
h=hit ratio
c=TLB access time
m=memory access time

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

What is a hit ratio?

A

percentage of times that a page number is found in the associative registers: related to the number of associative registers

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

What is Multilevel paging?

A

A paging scheme which consists of two or more levels of page tables in a hierarchical manner

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

What are the three ways Address binding can happen?

A

Compile Time
Load Time
Execution Time

17
Q

What is a cache?

A

A high-speed storage mechanism that stores copies of frequently accessed or recently used data or instructions.

18
Q

Name two differences between logical and physical addresses

A
  1. Tangibility: Logical addresses are virtual addresses that exist only within the program’s perspective, while physical addresses are real addresses that correspond to actual locations in physical memory.
  2. Visibility: Logical addresses are visible to the programmer and are used in the program’s code, while physical addresses are hidden from the programmer and managed by the operating system’s memory management unit (MMU).
19
Q

What is contiguous allocation/ Simple paging?

A

a memory allocation method where data is stored in adjacent, continuous blocks of memory without fragmentation or physical gaps between them.

20
Q

What is fixed partitioning?

A

divide memory into a fixed number of partitions of equal or different size. This can be efficient for programs that have a predictable memory usage.

21
Q

What is dynamic partitioning?

A

divide memory into partitions of variable size. This can be more efficient for programs that have a variable memory usage.

22
Q

What is fragmentation?

A

a problem that occurs when memory is allocated in a way that leaves unused gaps between allocated blocks. This can make it difficult to allocate memory for new processes.

23
Q

Explain the difference between internal and external fragmentation.

A

Internal fragmentation:
Occurs when allocated memory is larger than needed, leaving unused space within the allocated block.

External fragmentation: Wastage of memory when there are enough total free memory spaces, but they are not contiguous or usable together.

24
Q

What is thrashing?

A

Thrashing occurs when processes are actively using more memory than is physically present. This causes a state of continuous paging;

25
Q

What is pre paging?

A

Prepaging, also known as anticipatory paging, involves loading not only the required page but also additional pages into memory preemptively before they are needed by a process.

26
Q

What is demand paging?

A

Demand paging is a memory management scheme that loads only the required pages into memory when a process initially starts execution.

27
Q

What is a page fault?

A

An interrupt that occurs when a program requests data that is not currently in real memory.