17.2. Thread states and multi-threading in C#
In C#, a thread can exist in the states shown in Figure 17.2. A thread must be in one (and only one) of these seven states at any one time.
Figure 17.2. Possible thread states in C#.
Some Java books may categorize threads which are 'ready to run' in a separate state, so that there are 'ready to run' threads (also known as 'runnable'), and 'running' threads. In a single-CPU machine, only one thread can be in the running state, while all the rest are in the ready to run pool. In Figure 17.2, I have not differentiated between ready to run and running. All threads which are ready to run, are considered ...
Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.