Thread State Flashcards
The key states for a thread are
Running, Ready, Blocked
Four (4) basic thread operations associated with a change in thread state
Spawn, Block, Unblocked, Finished
This operation typically transpires whenever a new process is created, since a thread for that specific process is also formed
Spawn
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
Block
This operation moves a blocked thread into the ready queue for the continuation of its execution
Unblocked
This happens whenever a thread completes its entire execution. Its register settings and stacks are deallocated
Finish
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
Thread Synchronization
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
Thread Library