#!/perl
use strict;
use Thread;
#use threads::shared;
my @threads;
my $mhofile = @ARGV[0];
open(MHO,"$mhofile");
my @mholist=<MHO>;
#print "@mholist\n";
foreach my $mho (@mholist) {
next unless defined $mho;
print "start one thread :\n";
$threads[my $tempcount]=Thread->new(\&start_thread,$mho);
$tempcount++;
}
foreach my $thread (@threads) {
$thread->join();
}
sub start_thread{
my ($infomho)=@_;
print "in thread $infomho";
sleep 20;
}