Week 7 Threads Flashcards

1
Q

What are some benefits of Threads

A

Responsiveness, Resource Sharing, Economy, Scalability

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

What is Parallelism?

A

It implies a system can perform more than one task simultaneously

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

There are two types of parallelism. What is Data parallelism?

A

Distributes subsets of the same data across multiple cores, same operation on each

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

There are two types of parallelism. What is Task Parallelism?

A

Distributing threads across cores, each thread performing a unique operation

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

What is Concurrency?

A

It supports more than one task making progress.

Single processor/core, scheduler providing concurrency

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

What are user threads?

A

Management done by user-level threads library.
There are three primary thread libraries:
- POSIX Pthreads
- Windows Threads
- Java Threads

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

What are Kernel threads?

A
Supported by the Kernel
Examples include virtually all OS's 
- Windows
- Max OS X
- Linux etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

There are three Multithreading models.

Describe Many - to - One

A

Multiple user threads mapped to a single kernel
Examples include
- Solaris Green Threads
- GNU Portable Threads

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

There are three Multithreading models.

Describe One - to - One

A

One user thread to one kernel
Ex:
- Windows
- Linux

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

There are three Multithreading models.

Describe Many - to - Many

A

Multiple kernels to multiple user threads
Ex:
- Solaris pre version 9
- Windows with thread fiber package

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

What’s a Thread Library?

A
  • It provides the programmer with APU for creating and managing threads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly