Quiz 3 Flashcards

1
Q

multithreading can also improve software performance (spped) when running on single-core cpu

A

true

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

the ______ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads

A

many to many

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

how many processes will be generated in the following code?

fork();
fork();
fork();

A

8

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

a ____ presents a set of programmer-defined operations that are provided mutual exclusion within

A

monitor

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

which of the following would be an acceptable signal handling scheme for multithreaded program? deliver the signal to the thread to which the signal applies, deliver the signal to every thread in the process, deliver the signal to only certain threads in the process, all of these

A

all

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

while a process is blocked on a semaphore’s queue, it is engaged in busy waiting

A

false

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

multithreading always has better performance than a single-threaded solution

A

false

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

while a process is blocked on a condition variable, it is engaged in busy waiting

A

false

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