469,603 Members | 2,110 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

thread suspend resume obsolete

I'm using Microsoft Visual Studio 2005

in multithreading, I want to be able to pause and resume a thread. I
see that suspend and resume are deprecated. So what can I use instead.

Feb 17 '07 #1
4 2985


"wanwan" <er*******@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
I'm using Microsoft Visual Studio 2005

in multithreading, I want to be able to pause and resume a thread. I
see that suspend and resume are deprecated. So what can I use instead.
From the thread, wait using an Event.

David

Feb 17 '07 #2
wanwan,

You can also use the Thread.Sleep method

Bruce

"wanwan" <er*******@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
I'm using Microsoft Visual Studio 2005

in multithreading, I want to be able to pause and resume a thread. I
see that suspend and resume are deprecated. So what can I use instead.

Feb 17 '07 #3
Wanwan,
Have a look at the following articles:

http://groups.google.com/group/micro...1896dfab2ed841

http://groups.google.com/group/micro...k+to+Search&&d
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"wanwan" <er*******@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
I'm using Microsoft Visual Studio 2005

in multithreading, I want to be able to pause and resume a thread. I
see that suspend and resume are deprecated. So what can I use instead.
Feb 26 '07 #4
"David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
news:e$**************@TK2MSFTNGP06.phx.gbl:
"wanwan" <er*******@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
>I'm using Microsoft Visual Studio 2005

in multithreading, I want to be able to pause and resume a thread. I
see that suspend and resume are deprecated. So what can I use instead.

From the thread, wait using an Event.
Or you can use ManualResetEvents/AutoResetEvents. Those are pretty neat
too.
Feb 26 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Charles Law | last post: by
12 posts views Thread by Andrew Bullock | last post: by
3 posts views Thread by =?Utf-8?B?TWFyayBDaGFubmluZw==?= | last post: by
20 posts views Thread by cty0000 | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.