while (@dirs_to_ftp) { my $dir= shift @dirs_to_ftp; startthread($dir); while (threads->list(threads::running)>=2) { sleep 1; } foreach my $thr (threads->list(threads::joinable)) { $thr->join(); } } foreach my $thr (threads->list()) { $thr->join(); }
In reply to Re: related to threads
by jethro
in thread related to threads
by Viki@Stag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |