2006年2月13日

在不同线程之间传递数据

摘要: 一般情况下,在线程间是不能交换数据的,不过在相同应用程序域中的线程则可以共享应用程序域的数据。我们可以通过AppDomain的GetData和SetData方法来实现这一功能。具体见源代码。 1usingSystem;2usingSystem.Threading;34namespaceConsoleDemo5{6/**////<summary>7///Class1的摘要说明。8///&... 阅读全文

posted @ 2006-02-13 10:28 刘寓 阅读(1802) 评论(1) 推荐(1) 编辑

导航