After recursively creating threads, how do I tell when they are done?
- From: "David Beoulve" <egyptianmaadi@xxxxxxxxx>
- Date: 11 Apr 2006 12:52:58 -0700
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?
.
- Follow-Ups:
- Re: After recursively creating threads, how do I tell when they are done?
- From: Michael Nemtsev
- Re: After recursively creating threads, how do I tell when they are done?
- From: Jon Skeet [C# MVP]
- Re: After recursively creating threads, how do I tell when they are done?
- Prev by Date: Re: Questions about app.config's <listeners> attributes
- Next by Date: Re: Where does Outlook get its colors?
- Previous by thread: delegate callback and threading question
- Next by thread: Re: After recursively creating threads, how do I tell when they are done?
- Index(es):
Relevant Pages
|