Thread.Resume

  • Thread starter Thread starter Tam
  • Start date Start date
T

Tam

Hi group,

Just downloaded the new Visual Studio 2005 (well new to me seeing as i
was previously using 2003).

My problem/question is that my Thread.Resume statements in an
application I've created has been depracted and I'm having trouble
finding what I should use instead.

Help?

Regards

Tam
 
Hi group,

Just downloaded the new Visual Studio 2005 (well new to me seeing as i
was previously using 2003).

My problem/question is that my Thread.Resume statements in an
application I've created has been depracted and I'm having trouble
finding what I should use instead.

Help?

Regards

Tam
According to
http://msdn2.microsoft.com/en-us/netframework/aa497288.aspx#System.Threading

"Thread.Resume has been deprecated. Please use other classes in
System.Threading, such as Monitor, Mutex, Event, and Semaphore, to
synchronize Threads or protect resources."

rossum
 
Tam said:
Just downloaded the new Visual Studio 2005 (well new to me seeing as i
was previously using 2003).

My problem/question is that my Thread.Resume statements in an
application I've created has been depracted and I'm having trouble
finding what I should use instead.

Help?

Rather than using Suspend/Resume, using an Auto/ManualResetEvent or
Monitor.Wait/Pulse/PulseAll. This is a much more orderly way of
working.

See http://www.pobox.com/~skeet/csharp/threads/deadlocks.shtml and
http://www.yoda.arachsys.com/csharp/threads/waithandles.shtml
 
Thankyou Jon... exactly what I needed to know/was looking for.

Sorry it took me a couple of days to recheck back here, just had a new
baby boy delivered to the world... there are now *two* (count em, two)
Thomas Inglis's in this world.

Again, many thanks.

Tam
 
Tam said:
Thankyou Jon... exactly what I needed to know/was looking for.

Sorry it took me a couple of days to recheck back here, just had a new
baby boy delivered to the world... there are now *two* (count em, two)
Thomas Inglis's in this world.

Many congratulations :)

I think you'll find that it won't just be threads that are suspended
for a while now :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top