Memory Flashcards

1
Q

How does a computer allocate memory to a process?

A

RAM is divided into pages. Each process is given an empty page to run off of and store information into. This prevents data from being overwritten.

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

What does a computer do if there is not enough memory to hold all of the current processes?

A

It uses virtual memory.

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

What is virtual memory?

A

The technique of dividing programs into memory that is currently needed and memory that is not currently needed, and storing memory that is not needed in secondary storage.

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

How are files stored in secondary memory?

A

The OS looks up where free memory is on the disk, and then stores the file there, making a note of where it is stored.

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

How is the secondary storage structured?

A

It is made up of ‘segments’, which are small pockets of memory, similar to pages in RAM

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

What is fragmentation?

A

Some files are larger than a single segment. In this case, the OS splits the file across many empty segments, sometimes which are on completely different parts of the disk. At the end of each segment, the OS writes a ‘Pointer’ to the next segment with part of the file in,

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

What is defragmentation?

A

Fragmentation causes the disk to slow down over time. A ‘de-frag’ program can be run which re-organizes data on the disk and puts files in adjacent segments. This makes retrieval faster.

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

What is a driver?

A

A device diver is a program written by a component manufacturer, telling a specific operating system how to interact with the their device.

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

What is a scheduler?

A

A program that allocates processing power to different processes, all running simultaneously.

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