F
Frankie
This is from MSDN online
(http://msdn2.microsoft.com/en-us/library/d00bd51t.aspx):
"Specify zero (0) to indicate that this thread should be suspended to allow
other waiting threads to execute."
My questions:
1. By "other threads" - does the above statement refer specifically and only
to other threads in the current AppDomain?
2. When would execution continue in the current thread (after a thread hits
Thread.Sleep(0))? Is it after all other threads - regardless of their
priority - have run their course completely, or is it after only higher
priority threads have run their course?
Just looking to understand the implications of adding Thread.Sleep(0) to my
code - and when doing so would be a good thing [or possibly bad thing] to
do.
Thanks.
(http://msdn2.microsoft.com/en-us/library/d00bd51t.aspx):
"Specify zero (0) to indicate that this thread should be suspended to allow
other waiting threads to execute."
My questions:
1. By "other threads" - does the above statement refer specifically and only
to other threads in the current AppDomain?
2. When would execution continue in the current thread (after a thread hits
Thread.Sleep(0))? Is it after all other threads - regardless of their
priority - have run their course completely, or is it after only higher
priority threads have run their course?
Just looking to understand the implications of adding Thread.Sleep(0) to my
code - and when doing so would be a good thing [or possibly bad thing] to
do.
Thanks.