Lecture 3 Flashcards

1
Q

What are the two main approaches to multiplexing?

A

multiplex CPU operations (scheduling processes to run concurrently on a single processor),
and multiplexing memory (using virtual memory to enable many processes to share
physical memory).

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

When do we want a process to access the memory of another process?

A

inter-process communication (e.g. process A needs the computational result of process B)

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

Protection during multiplexing

A

memory access of one

process by another is prevented, meaning they cannot accidentally overwrite each others data.

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

Give an example of memory protection

A

Kernal data is protected by user programs as there is a range of physical memory allocated to storing kernal data and cant be accessed by user programs.

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

Memory multiplexing: controlled overlap

A

processes effectively communicate as to when each will access the shared resource so as there is no usage overlap.

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

Memory translation

A

mapping from virtual addresses (a specific memory
address in a very large range of possible memory addresses) to a physical addresses
(a specific memory address in a very limited range of possible memory addresses).

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

Does CPU use virtual or physical addresses

A

e CPU uses virtual addresses thus giving it

access to all programs that need to be scheduled to run (loaded into main memory).

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

cache memory

A

computer memory with very short access time used for storage of frequently used instructions or data

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

What is the basic problem of memory translation?

A

there are many processes that can be assigned logical memory addresses (e.g. using 64 bit memory
addresses), but there are relatively few physical memory addresses

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

Memory assignment

A

Process must be assigned to a free physical memory address that is of a suitable size for the process.

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

Memory protection

A

Because of limited physical memory processes must share main memory addresses. protection is needed to ensure that processes don’t access this shared memory at the same time.

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

Memory sharing

A

The problem is that the n processes must
be suitably divided up so as all processes are assignment a physical memory address and that an approximately equal number of processes share a physical address in main memory

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