BackgroundWorker的和线程 [英] BackgroundWorker and Threads
本文介绍了BackgroundWorker的和线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是使用无论是实现给定任务的利弊。
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?
非常感谢。
推荐答案
我使用的BackgroundWorker至于什么主题的包装关联会做。所以我用的BackgroundWorker的GUI工作,以及更专业的或肮脏的工作线程(Windows服务等)
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)
这篇关于BackgroundWorker的和线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文