#!/usr/bin/perl -w #Description:rerun eod job group by system #Auther:Suzm #Date :2015-06-23 use DBI; use Thread; use strict; push( @INC, $ENV{TPMS_EOD_PERL_LIB} ); require public_pg; my %dbc_info; my $maxnum = 3; my %threads; my $tx_date; my $path_
#!/usr/bin/perl use strict; use warnings; use threads; use Thread::Semaphore; my $max_thread = 5; my $semaphore = Thread::Semaphore->new($max_thread); sub TestFun { $semaphore->up(); } for(my $index = 1; $index <= 10; $index ++) { $semaphore->