Threads and Concurrency Flashcards

1
Q

How is a process different from a thread

A

A process is unit of resource allocation and a unit of protection

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

How do threads fit in within the context of a process?

A

The thread is the basic unit which the OS allocates processor time

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

Threads < Process. Explain the benefits of threads this statement implies in terms of time.

A

It takes less time to create and terminate a thread. It takes less time to switch between threads and communicate between threads in the same process.

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

User level threads (ULTs) are managed by the user ___________ . Kernel level threads are managed by the kernel. _____ _________ does not require kernel mode privileges with ULTs.

A

Application, Thread switching.

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

The kernel can concurrently schedule _______ ______ from the same process on ________ __________ .

A

Multiple threads, multiple processors.

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

A mode switch by the kernel is the:

A

Transfer of control from one thread to another thread within the same process

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

A mode switch by the kernel as a result has:

A

Some overhead

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