日期:2014-05-18 浏览次数:20977 次
thread1() { while(true) { if(IsTerminate&&System.Threading.Thread.CurrentThread.ManagedThreadId==ThreadId) break; ... } } thread2() { ThreadId=thread1的id; IsTerminate = true; }