公寓形式和同步上下文之间的区别 [英] difference between Apartments Forms and Synchronization Contexts
本文介绍了公寓形式和同步上下文之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Apartments和Windows窗体和同步上下文之间有什么区别?
what difference between Apartments and Windows Forms and Synchronization Contexts?
推荐答案
如果您搜索MTA和STA,您将获得一些有关Apartments的非常详细的信息. />
同步上下文用于跨线程传递(例如,通过SendOrPostCallback
委托向UI线程调用方法).还可以查看BackgroundWorker
内部使用的AsyncOperation
和AsyncOperationManager
(这些在内部使用Syncronization上下文).
If you google for MTA and STA you will get some very detailed information about apartments.
Synchronisation contexts are used for passing across threads (such as invoking a method via aSendOrPostCallback
delegate to the UI thread). Also have a look atAsyncOperation
andAsyncOperationManager
(these use Syncronization contexts under the hood) as used internally by theBackgroundWorker
.
您必须向Google学习:非常快速使用从您的问题中复制并粘贴的"Apartments and Windows Forms和Synchronization Contexts"进行搜索,得到的结果是: http://www.scribd.com/doc/7336837/36/Apartments-and-Windows-Forms [
You must learn to Google: a very quick search using "Apartments and Windows Forms and Synchronization Contexts" copied and pasted from your question gave this: http://www.scribd.com/doc/7336837/36/Apartments-and-Windows-Forms[^] (among others).
这篇关于公寓形式和同步上下文之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文