我在我的Perl
脚本中使用了多个线程,并在最后通过这段代码加入它们:
my @running = threads->list(threads::running);
while ($#running > -1) {
foreach (@thrs) {
$_->join() if $_->is_joinable();
}
@running = threads->list(threads::running);
}
但在 50% 时我收到错误消息Perl exited with active threads
。有人能帮我吗?谢谢