Thread State Flashcards

1
Q

The key states for a thread are

A

Running, Ready, Blocked

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

Four (4) basic thread operations associated with a change in thread state

A

Spawn, Block, Unblocked, Finished

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

This operation typically transpires whenever a new process is created, since a thread for that specific process is also formed

A

Spawn

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

This happens when a thread needs to wait for a particular event. In this operation, all the necessary information are automatically saved for the thread’s execution resumption

A

Block

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

This operation moves a blocked thread into the ready queue for the continuation of its execution

A

Unblocked

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

This happens whenever a thread completes its entire execution. Its register settings and stacks are deallocated

A

Finish

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

All threads of a process share the same address space and resources. Hence, any alteration of a resource by one thread affects the environment of the other threads within the same process

A

Thread Synchronization

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

Any application can be programmed to be multithreaded with the use of thread libraries. A … technically provides programmers with an application programming interface (API) for creating and managing threads

A

Thread Library

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