Lecture 1 Flashcards

1
Q

Where are processes in virtual memory stored?

A

Secondary storage

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

Translation

A

Mapping between virtual memory address space and physical memory.

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

Valid region of memory

A

A main memory address space is free and large enough to hold the assigned page.

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

When do translations take place?

A

execution time when the Memory Management Unit (MMU) assigns each process chunks of
physical (main) memory.

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

Why is partial loading advantageous?

A

Many processes can execute at once, this increases the utilization of the CPU.

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

Page

A

A small chunk of memory that is a small part of the total memory needed for the process to execute.

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

Page table

A

Look up table containing virtual to phyiscal address mapping.

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

In physical memory what is the address space 28…31 reserved for?

A

OS-kernal level applications.

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

Why have virtual memory?

A

virtual memory uses secondary storage to create an

the illusion of even larger memory space.

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

Virtual memory manager

A

retrieves processes currently in secondary storage (virtual memory) for transfer to physical
memory.

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

Describe the three results of translation.

A
  1. Page table does translation
  2. Page is still in secondary storage and not accessible to MMU.
  3. Nothing happens. The virtual address referenced is invalid.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Demand paging

A

pages are allocated (on demand) to free frames

in main memory.

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

Where are the most used pages stored?

A

In a temporary memory cache for fast access and retrieval

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

What happens to pages in the main memory that are least used?

A

Written back to secondary storage.

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

Context switching

A

The process of swapping in and out parts of processes between virtual and main
memory.

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

What necessitates the use of paging?

A

Fine-grained control of what parts of what processes are currently in physical versus virtual memory

17
Q

When does context switching occur?

A

When we switch between user and kernel
operations.
OS level software interrupt.

18
Q

What makes up a process?

A

code, data, heap and stack

19
Q

Heap

A

Dynamic memory allocation.

starts at a Min logical address and grows up

20
Q

Stack

A

Static memory allocation

starts at a Max logical address and grows down

21
Q

Advantage of the stack

A

memory is managed for the user, who

doesn’t have to allocate memory by hand, or free it once it isn’t needed any more.

22
Q

Memory leak

A

User fails to deallocate memory that is no longer needed.

23
Q

Why is frequent swapping between virtual and physical memory inefficient?

A

It requires an OS context switch.During a context switch the CPU is not being used.

24
Q

Fragmentation

A

Wasted memory space

25
Q

External fragmentation

A

free gaps between allocated chunks in physical memory

26
Q

Internal fragmentation

A

wasted memory within allocated chunks (i.e. too much main memory was allocated for the
corresponding virtual memory chunk).