[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

System.Threading.ThreadState enums

abc

12/18/2002 5:10:00 PM

Who knows what are the actual values for
System.Threading.ThreadState enums? What thread state are
100, 36, 68 map to?

Thanks.
4 Answers

NETMaster

12/18/2002 8:11:00 PM

0

If I get it correctly:

Running = 0,
StopRequested = 1,
SuspendRequested = 2,
Background = 4,
Unstarted = 8,
Stopped = 16,
WaitSleepJoin = 32,
Suspended = 64,
AbortRequested = 128,
Aborted = 256


36 : WaitSleepJoin | Background (32 + 4)

68 : Suspended | Background

100 : Suspended | WaitSleepJoin | Background



--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_d... - http://dnetm...


abc

12/18/2002 8:37:00 PM

0

Sounds right. Thanks a lot. Where did you find this info
though?

>-----Original Message-----
>If I get it correctly:
>
> Running = 0,
> StopRequested = 1,
> SuspendRequested = 2,
> Background = 4,
> Unstarted = 8,
> Stopped = 16,
> WaitSleepJoin = 32,
> Suspended = 64,
> AbortRequested = 128,
> Aborted = 256
>
>
>36 : WaitSleepJoin | Background (32 + 4)
>
>68 : Suspended | Background
>
>100 : Suspended | WaitSleepJoin | Background
>
>
>
>--
> Thomas Scheidegger - MVP .NET - 'NETMaster'
> http://www.cetus-links.org/oo_d... -
http://dnetm...
>
>
>.
>

NETMaster

12/18/2002 8:53:00 PM

0

> Where did you find this info though?

First, I did ILDASM 'mscorlib.dll' for ThreadState.
Then I compared with the source-code from SSCLI
http://msdn.microsoft.com...
like
http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/fx/bcl/threadstate_8cs-s...


--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_d... - http://dnetm...


abc

12/19/2002 4:26:00 AM

0

Very cool links. Merry Christmas!!!

>-----Original Message-----
> > Where did you find this info though?
>
>First, I did ILDASM 'mscorlib.dll' for ThreadState.
>Then I compared with the source-code from SSCLI
> http://msdn.microsoft.com...
>like
>
http://dotnet.di.unipi.it/Content/sscli/docs/doxy...
/threadstate_8cs-source.html
>
>
>--
> Thomas Scheidegger - MVP .NET - 'NETMaster'
> http://www.cetus-links.org/oo_d... -
http://dnetm...
>
>
>.
>