Re: JoinAll?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: David Browne (meat_at_hotmail.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 09:16:27 -0500


"TT (Tom Tempelaere)" <_N_0SPA|/\|titi____@hotmail.com|/\|APS0_N_> wrote in
message news:7731518E-F84F-4571-9A38-F80B8EB6B322@microsoft.com...
> Hi,
>
> Is there a method in .NET framework that allows me to wait on several
threads? (I think there isn't). Similar to WaitHandle.WaitAll, but for
waiting threads to finish. I expected such a method as a static helper
method in class System.Threading.Thread:
>
> public static bool JoinAll( System.Threading.Thread[] threads );
>
> Would such a method be useful to other people than me? Opinions?
>

You can just join each thread in turn.

foreach (Thread t in threads)
{
  t.wait();
}

David



Relevant Pages

  • Re: JoinAll?
    ... > waiting threads to finish. ... Opinions? ... foreach ... David ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Run .NET Appllications without runtime.
    ... I hope that opinions don't make your decisions for you. ... >>>I am thinking of developing a shareware application based on the .net ... >> free download from the Microsoft Windows Update web site. ... >> include the .Net Framework distributable in your app, ...
    (microsoft.public.dotnet.framework)
  • Re: Does this exist?
    ... David, you can use, and program in, the .NET framework without buying ... >> complex tabbed interface forms but I am willing to relook at the entire ... >> someone knowledgebale in this area to help us get the project off the ...
    (microsoft.public.vsnet.general)
  • Re: Delphi 2005 Personal
    ... my apps would depend on the .NET Framework runtime (which is ... The .NET Framework is actually quite nice to work with in many areas, ... installation into your applications installer. ... David Clegg ...
    (borland.public.delphi.non-technical)
  • Re: Newbie Question: Asp Classic and ASP.NET running on IIS5 side-by-side ?
    ... Thanks David. ... > Unless you have no choice, stop the IIS service before installing ... > the .NET framework. ...
    (microsoft.public.dotnet.framework.aspnet)