1

Possible Duplicate:
What are alternative ways to suspend and resume a thread?

In my work I previously used Thread.Suspend(); And Thread.Resume(); to suspend and resume the work done by the thread. But Now while compiling it says Thread.Suspend(); And Thread.Resume(); are obsolete and deprecated.

Is there any way to suspend and resume work..??

Community
  • 1
  • 1
Ravishankar N
  • 141
  • 1
  • 1
  • 9

1 Answers1

0

You could define a variable outside of the thread which can be read by the thread to determinate whether to work or stop.

bytecode77
  • 14,163
  • 30
  • 110
  • 141