Trouble with multithreading

  • Thread starter Thread starter Fernando Rodríguez
  • Start date Start date
F

Fernando Rodríguez

Hi,

I don't the difference between the wait|sleep|join states and the suspended
one. Could someone please explain this? O:-)

Any pointers to multithreading tutorials would be appreciated to.

Thanks :-)
 
SleepWaitJoin happens when the thread does one of the following:
1) Calls Thread.Sleep();
2) uses a thread synchonization primitive that is not signalled/free e.g. Monitor, Mutex, AutoResetEvent
3) Calls Join so synchronize with another thread

Suspended happens when someone calls Suspend on your thread (assuming they will probably call Resume at a later point)

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

Hi,

I don't the difference between the wait|sleep|join states and the suspended
one. Could someone please explain this? O:-)

Any pointers to multithreading tutorials would be appreciated to.

Thanks :-)

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004



[microsoft.public.dotnet.languages.csharp]
 
Back
Top