Thread Flashcards

1
Q

Most modern applications

A

are multithreaded

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

Threads run

A

within application

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

Multiple tasks with the application can be implemented by separate threads

A

Update display
Fetch data
Spell checking
Answer a network request

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

Process creation is heavy-weight

A

while thread creation is light-weight

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

Kernels are generally

A

multithreaded

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

Benefits of thread

A

Responsiveness,
Resource Sharing
Economy
Scalability

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

Responsiveness

A

may allow continued execution if part of the process is blocked, especially important for user interfaces

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

Resource Sharing

A

threads share resources of process, easier than shared memory or message passing

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

Economy

A

cheaper than process creation, thread switching lower overhead than context switching

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

Scalability

A

the process can take advantage of multiprocessor architectures

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

Multi core or multiprocessor systems putting pressure on programmers, challenges include:

A
Dividing activities
Balance
Data splitting
Data dependency
Testing and debugging
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Parallelism

A

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
13
Q

Concurrency

A

supports more than one task making progress

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

Types of parallelism

A

Data parallelism

Task parallelism

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

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
16
Q

Task parallelism

A

distributing threads across cores, each thread performing a unique operation