Asheesh
Fri Feb 27 03:04:32 CST 2004
Hi Faraz,
Take a look at this link..
http://msdn.microsoft.com/library/en-us/dncfhowto/html/stopmt.asp
This article shows how to stop multiple threads, and uses the way pointed
out by Ginny.
HTH,
Asheesh
"Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> wrote in message
news:u5PldYO$DHA.4012@tk2msftngp13.phx.gbl...
> Faraz,
>
> You could use a global variable that is incremented as each worker thread
> starts and decremented when each thread ends. When it reaches zero, you're
> done.
> --
> Ginny Caughey
> .Net Compact Framework MVP
>
> "Faraz Hussain" <faraz_hs@hotmail.com> wrote in message
> news:umrEGX3%23DHA.2636@TK2MSFTNGP09.phx.gbl...
> > Dear All,
> > How can I wait for multiple threads to finish in .Net Compact Framework?
> >
> > In full .Net Framework we have Thread.join() method which we can call to
> > wait for the thread to finish but in .Net CF it is simply not available.
> Can
> > anyone tell me the alternative of Thread.join() method in .Net CF.
> >
> > I shall be very thankfull.
> > regards,
> > Faraz
> >
> >
>
>