Threads Flashcards

1
Q

What are the two types of threads?

A
  1. User level
  2. Kernel level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which thread executes for a time of only one process?

A

User level

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

Which thread is managed by runtime library routines linked into each application so that it does not require kernel intervention.

A

User level

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

What are the advantages of User Level threads?

A
  • Thread operations do not have to cross protection boundary.
  • Parameter do not need to be copied.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the disadvantages of User Level threads?

A
  • Kernel implements a single policy or pays overhead of managing multiple policies.
  • User-level threads that issue blocking calls to the kernel will block an entire process.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which thread avoids the system integrations problems, directly scheduling each application’s threads onto physical process.

A

Kernel level

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

What are the advantages of Kernel Level threads?

A
  • “Correct” kernel level support.
  • Can take advantage of multiple CPUs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the disadvantages of Kernel Level threads?

A
  • They are expensive.
  • They do not understand application behavior.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is multiplexing?

A

Many-to-Many Implementation

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

What thread offers good perfomance, but does not handle I/O well?

A

User Level

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

True or False:

Threads are needed for parallel applications.

A

True

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

What notifies user level schedulers of changes in kernel scheduling decisions?

A

Scheduler Activations

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

What are the uses for scheduler activations?

A
  • Provides kernel space for threads that block in the kernel.
  • Creates one activation for each virtual processor
  • Uses upcall to notify kernel of scheduling events.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly