Hi all, I have a MDI WinForms application that can perform several tasks. Each task is running as a backgroundWorker.
What is the good approach to control the running threads:
- check whether the specific thread is running
- stop specific thread ?
For example it shouldn't be possible to run the same task simultaneously.
May be I need a separate class where I can store isTaskRunning variable?
How is the good way to do this?
TIA