Docsity

Windows Thread States: A Comprehensive Guide to Understanding Thread Execution in Windows, Exams of Biology

Toggle sidebar
bg1
CCTC Windows Thread States
(Windows Processes Book Excerpt)
What are the 8 Windows Thread States?
Ready
Deferred ready
Standby
Running
Waiting
Transition
Terminated
Initialized
Ready
Waiting to execute (or ready to be in-swapped after completing a wait).
When looking for a thread to execute, the dispatcher considers only the
pool of threads in the ready state.
Previous
Play
Next
Rewind 10 seconds
Move forward 10 seconds
Unmute
0:00
/
0:15
Full screen
pf3

Partial preview of the text

Download Windows Thread States: A Comprehensive Guide to Understanding Thread Execution in Windows and more Exams Biology in PDF only on Docsity!

CCTC Windows Thread States

(Windows Processes Book Excerpt)

What are the 8 Windows Thread States? Ready Deferred ready Standby Running Waiting Transition Terminated Initialized Ready Waiting to execute (or ready to be in-swapped after completing a wait). When looking for a thread to execute, the dispatcher considers only the pool of threads in the ready state. Previous Play Next Rewind 10 seconds Move forward 10 seconds Unmute 0: / 0: Full screen

Brainpower Read More Deferred ready Used for threads that have been selected to run on a specific processor but have not actually started running there. Exists so that the kernel minimizes the amount of time the per-processor lock on the scheduling database is held. Standby Selected to run next on a particular processor. When the correct conditions exist, the dispatcher performs a context switch to this thread. Only one thread can be in the standby state for each processor on the system. Note that a thread can be preempted out of the standby state before it ever executes (if, for example, a higher priority thread becomes runnable before the standby thread begins execution). Running Once the dispatcher performs a context switch to a thread, the thread enters the running state and executes. The thread's execution continues until its quantum ends (and another thread at the same priority is ready to run), it is preempted by a higher priority thread, it terminates, it yields execution, or it voluntarily enters the waiting state. Waiting A thread can enter the waiting state in several ways: a thread can voluntarily wait for an object to synchronize its execution, the operating system can wait on the thread's behalf (such as to resolve a paging I/O), or an environment subsystem can direct the thread to suspend itself. When the thread's wait ends, depending on the priority, the thread either begins running immediately or is moved back to the ready state. Transition