use threads;
...
my $t1 = async{ system '...'; };
my $t2 = async{ system '...'; };
my $t3 = async{ system '...'; };
my $t4 = async{ system '...'; };
$_->join for $t1, $t2, $t3, $t4;
Or just: $_->join for map async( sub{ system shift; }, $_ ),
'command1 args',
'command2 args',
'command3 args',
'command4 args';
They'll be more to it than that once you get around to describing the full requirements; but on the basis of what you've told us so far, that would do it.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|