Before Exam Flashcards

1
Q

What does the heap store?

A

Dynamic memory

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

What does the stack store?

A

Next program instruction/local variables

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

What does the data segment store?

A

Static variables

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

What does the text/code segment store?

A

Program code/executable instructions

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

What is copy-on-write?

A

The program shares the memory until they wait to do changes, then the memory is copied before writing

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

What is lock contention?

A

When many threads try to access a shared resource at the same time, making some of the threads wait a long time before getting access

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

What is MCS and when are they great to use?

A

MCS is a way to organize threads waiting for a shared resource in a line, the threads will only check the status of the thread in front of them. Great when there are a lot of threads waiting for a shared resource

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

What is RCU and when is it great to use?

A

RCU is way that threads simultaneously will read from the same shared resource, when a thread want to modify the resource, it copies the memory and only writes to original memory when there are no threads reading from it. Great when there are many more readers than writers

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

Average response time

A

Average time a task waits before getting cpu time

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

Throughput

A

The rate at which tasks are completed

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