After recursively creating threads, how do I tell when they are done?

Tech-Archive recommends: Fix windows errors by optimizing your registry



In my windows C# app, I create a thread to separate the main code block
from the GUI, which recursively sorts through all the directories
starting from a given point, and every time it finds a "*.html" file,
it starts a new thread to go to work on that file. Since each
individual thread doesn't have to touch another's file, this works
fine.

What I need to know is when all of these threads are finished.
Theoretically a lot of threads could be cued, and I'm having trouble
figuring out how to store a list of references to them so I can check
their ".IsAlive" state.

Can anyone give me any pointers?

.



Relevant Pages

  • Re: After recursively creating threads, how do I tell when they are done?
    ... DB> In my windows C# app, I create a thread to separate the main code ... DB> block from the GUI, which recursively sorts through all the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: My Enterprise Architecture - your thoughts?
    ... except that for any non-trivial app I ... >think it's going to make sense to keep the GUI logic separate from the ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: How about a opinion from the pros?
    ... In a assembler with GUI, ... even separate programs). ... to isolate the worst of the requirements changes in the upper levels, ...
    (comp.programming)
  • Re: Relationship between GUI and logic?
    ... physically separate, by using XRC for example, but I'm wondering if it's also good practice to keep them separate from an implementation standpoint as well. ... Basically what I mean is, should it be possible to write, for example, the logic for a strategy game without even knowing what the graphics will look like or how they will work? ... Then your user interface will just have to create a visual representation of this model and present the user with ways to call the interaction functions/methods. ... Could you really write this function without 1) knowing what the interface will look like, and 2) integrating GUI code with the logic? ...
    (comp.lang.python)
  • Re: Correct abstraction for TK
    ... just have gui operations call the application code. ... application main loop is just the gui event loop. ... put gui in separate thread. ... support multiple clients simultaneously, etc. ...
    (comp.lang.python)