Friday, 30 September 2011

What are Suspend() and Resume() methods in threading?

                   Those are similar to Sleep and Interrupt. Suspend allows you to block a thread until another thread calls Thread.Resume(). The difference between Sleep() and Suspend() is that the latter does not immediately place a thread in the wait state. The thread does not suspend until the .NET runtime determines that it is in a safe place to suspend it. Sleep() will immediately place a thread in a wait state

No comments:

Post a Comment