[問題] about multi-thread

看板C_Sharp作者 (要公理要正義)時間18年前 (2007/09/26 16:33), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
各位先進好: 弟對THREAD有些不解的地方,盼望有能人可以為我解惑, 感恩! 文述如下: You might wish to kill a thread in reaction to an event, such as the user clicking the Cancel button. The event handler for the Cancel button might be in thread t1, and the event it is canceling might be in thread t2. In your event handler, you can call Abort on t1: t1.Abort(); An exception will be raised in t1's currently running method that t1 can catch. 我的疑問是當T1中的事件程序正在執行時, T2 thread如何得知並呼叫 t1.Abort()以中止發生EVENT的THREAD(T1).... 感恩您 -- ============================= 夏有涼風 冬有雪 http://itsoho.myweb.hinet.net ============================= -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.126.181.10

09/26 16:38, , 1F
callback 或 delegate 啊 ...
09/26 16:38, 1F
文章代碼(AID): #16-Xbifa (C_Sharp)
文章代碼(AID): #16-Xbifa (C_Sharp)