BackgroundWorker and Threads

后端 未结 6 2429
渐次进展
渐次进展 2021-02-15 11:19

What are the pros and cons in using the either for achieving a given task.

The million dollar question is which one to use and when?

Many Thanks.

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-15 11:46

    I use to associate BackgroundWorker as a wrapper for what Threads would do. So I use BackgroundWorker on GUI works, and Threads on more specialized or dirty jobs (Windows Services, etc)

提交回复
热议问题