BackgroundWorker and Threads

后端 未结 6 2257
渐次进展
渐次进展 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:33

    Threads only when you don't have to work with a UI (WinForms or WPF) and background workers when you do have to deal with a UI.

    You avoid a lot of problems with UIs and background workers.

提交回复
热议问题