F Frank Rizzo Jan 28, 2005 #1 I kick off a bunch of threads inside the ThreadPool. How do I know when the thread is finished running? Thanks.
I kick off a bunch of threads inside the ThreadPool. How do I know when the thread is finished running? Thanks.
I Ignacio Machin \( .NET/ C# MVP \) Jan 28, 2005 #2 Hi, You have to keep a reference to the thread, then you can query Thread.IsAlive or Therad.Status to know teh status of the thread Cheers,
Hi, You have to keep a reference to the thread, then you can query Thread.IsAlive or Therad.Status to know teh status of the thread Cheers,
F Frank Rizzo Jan 28, 2005 #3 Ignacio said: Hi, You have to keep a reference to the thread, then you can query Thread.IsAlive or Therad.Status to know teh status of the thread Click to expand... How can I do it if the Thread is running in the ThreadPool?
Ignacio said: Hi, You have to keep a reference to the thread, then you can query Thread.IsAlive or Therad.Status to know teh status of the thread Click to expand... How can I do it if the Thread is running in the ThreadPool?
I Ignacio Machin \( .NET/ C# MVP \) Jan 28, 2005 #4 Hi, Did you ever took a look at the Thread class in the MSDN ? Thread.IsThreadPoolThread Btw, I made a mistake before, it;s Thread.ThreadState no Thread.Status Sorry, I did not look into MSDN cheers,
Hi, Did you ever took a look at the Thread class in the MSDN ? Thread.IsThreadPoolThread Btw, I made a mistake before, it;s Thread.ThreadState no Thread.Status Sorry, I did not look into MSDN cheers,