Test 2 Flashcards
1
Q
Linux Memory Area
A
- a chunk of virtual memory mapped to a VM area space structure
2
Q
task_struct
A
- The OS stores process state in a data structure called process control block. There is one per process
called task_struct in linux
3
Q
Difference between segmentation fault and protection fault?
A
- segmentation fault occurs when request and address is not in the VMA
- protection fault occurs when you don’t have permissions to access that address
4
Q
memory mapping
A
- structure of data indicating how memory is laid out
5
Q
demand zero page
A
- physical page fill of 0’s
6
Q
swap file
A
- same as swap space
- portion of the memory used for virtual memory
7
Q
swap space
A
- same as a swap file
- portion of the memory used for virtual memory
8
Q
copy on write
A
- copy file and save new only when wrote to otherwise access the same file
9
Q
demand zero page
A
- physical page fill with 0’s
10
Q
What does the mmap function do?
A
- allows you to comb through a file like it is an array
11
Q
What is a dynamic memory allocator and what are the two types of memory allocators?
A
- memory allocator that all allocate explicitly
- there are two types: explicit and implicit
12
Q
shared object
A
- a file that contains binary code and data that can be loaded into memory and linked dynamically
13
Q
shared area
A
- virtual memory that are shared by more than one process and then can be used by multiple programs simultaneously. Although virtual memory allows processes to have separate address spaces, there are times when you need processes to share memory.
14
Q
private object
A
blank
15
Q
throughput (with respect to memory alloactors)
A
- how many commands per second