Threads Flashcards

1
Q

A Process

A

is the abstraction used by the OS to manage resources and provide protection. A process defines an address space

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

Thread

A

represents an abstract entity that executes a sequence of instructions

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

Why do we use threads?

A

(1) to better represent the structure of tasks and (2) to improve performance

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

What does each thread have and not have?

A

Each thread has its own stack and CPU registers but does not have its own address space

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

Threads vs. Processes

A

Easier to communicate between threads because you can use shared resources and threads are lightweight and cheaper.

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