阅读背景:

在C#中,在两个线程之间传递数据的推荐方法是什么?

来源:互联网 

I have my main GUI thread, and a second thread running inside it's own ApplicationContext (to keep it alive, even when there is no work to be done). I want to call a method on my 2nd thread from my GUI thread, but if I just call thread.Method(); it seems to be running on my main GUI thread and causes my GUI to become unresponsive. What is the best way to call methods on different threads?I have my main GUI thread, and a second thread




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: