我使用的是多線程應用程序。如何跟蹤特定主題已完成
ThreadStart thSA = new ThreadStart(saBroker.SearchContract);
DTThread threadSA = new DTThread(thSA, WaitForSA);
brokerThreads.Add(threadSA);
ThreadStart thSA1 = new ThreadStart(saBroker1.SearchContract);
DTThread threadSA1 = new DTThread(thSA1, WaitForSA1);
brokerThreads.Add(threadSA1);
brokerThreads.StartAll();
現在我有場景,我有threadSA1完成後執行特定的任務。 那麼,我如何跟蹤具體的線程完成。
請幫助...