>What about Thread.Interrupt? Isn't that for waking up a thread that's
>currently sleeping?

Thread.Interrupt is documented with "...If this thread is not currently
blocked in a wait, sleep, or join state, it will be interrupted when it
next begins to block.".

You can use Thread.Interrupt but it is an abnormal termination technique
and could lead to corrupted invariants, if you're not careful.

But, as Joe Duffy says "...avoid Thread.Interrupt like the plague.",
and "Thread interrupts are (almost) as evil as thread aborts" [1]

[1]
http://www.bluebytesoftware.com/blog/2007/08/23/ThreadInterruptsAreAlmostAs
EvilAsThreadAborts.aspx

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to