471,330 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

wait for all threads to complete

is there any function that stops the further execution of the code untill all threads come to complete

if there is give me a simple example
Sep 19 '07 #1
1 5647
bartonc
6,596 Expert 4TB
is there any function that stops the further execution of the code untill all threads come to complete

if there is give me a simple example
Here's something that might work well:
Expand|Select|Wrap|Line Numbers
  1. # start all of the threads
  2. if theFirstThread.isAlive():
  3.     theFirstThread.join()
  4. # repeat for each thread
Sep 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Peter Kirk | last post: by
12 posts views Thread by Perecli Manole | last post: by
16 posts views Thread by Thirsty Traveler | last post: by
6 posts views Thread by Michael D. Ober | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.