RAM and Virtual Memory Flashcards

1
Q

What does a virtual memory manager (VMM) do?

A

Creates extra space in RAM by looking at RAM to see what sections aren’t currently needed and putting those sections in the swap file on the hard drive.

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

Why does swapping cause a delay?

A

Because the hard disk is relatively slow at reading and writing compared to RAM, and the technology of a hard drive is not geared toward accessing small pieces of data at a time.

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

What is the area of the hard disk that stores the RAM image?

A

A page file

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

What would happen if there were no such thing as virtual memory?

A

You would only be able to run a limited number of programs at once before you would have to free up space manually by closing programs you are not using.

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

What causes “thrashing”?

A

If enough processes are started and if the operating system hasn’t been carefully designed, the system can begin to use the majority of its available CPU cycles to swap between processes rather than run processes.

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

What is loaded into RAM when you run a program?

A

The executable file
Shared Dynamic Link Libraries (DLLs)
Data files

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