Re: How do I know when my work threads have completed their tasks?



Hi Pucca,

the WaitCallBack-handler (PopulateContextTable e.g.) should signal that at
the and, maybe in a finally block. If this is called from a GUI-Thread you
could call BeginInvoke on one of the Forms methods.

Christof

"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:E805594F-654D-4932-A062-01962A077D10@xxxxxxxxxxxxxxxx
Hi, I'm using vs2005 and .net 2.0. I started 2 threadpool threads. How
do I
know when they're done with their tasks? Thanks.

ThreadPool.QueueUserWorkItem(new WaitCallback(PopulateContextTable));
ThreadPool.QueueUserWorkItem(new WaitCallback(PopulatAdTable));
--
Thanks.


.