|
-
September 28th, 2005, 10:06 PM
#2
Re: Multithreading: Creating Threads from Within a Thread
You could place all your newly created threads in an array or collection when they are created. You could then Join your UI thread to the first thread. When that thread terminates you would look through the array or collection for the next thread that is still executing and Join to that. You would keep doing this until there were no more threads that were still executing. Make sure you synchronise access to the array or collection though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|