Runtime Memory and Jumps Flashcards

1
Q

How is memory allocation handled in linux?

A

Each process runs in its own lump of memory called a virtual address space.

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

What are page tables used for?

A

Page tables map the virtual memory address to physical addresses.

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

What are three advantages of Virtual Address Spaces?

A

Transparency, protection and isolation, flexible memory placement.

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

What does the setjmp command do?

A

Saves the contents of the registers to a buffer.

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

What does the longjmp command do?

A

Restores the content of the registers from a buffer.

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

What is concurrency?

A

Multiple processes accessing one disk and sharing one CPU.

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

What are the two techniques used to handle Concurrrency?

A

Time Slicing and Context Switching.

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

What is parallelism?

A

Multiple processes running on separate CPUs.

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

What are coroutines?

A

Concurrent but not parallel processed used to split a computationally heavy routine.

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