- or download this
$thr = threads->new(\&sub1, "THREAD1 :");
...
@ReturnData = $thr->join;
...
- or download this
($thr) = threads->new(\&sub1, "THREAD1 :");
...
@ReturnData = $thr->join;
...
- or download this
{
lock $foo;
$foo=0;
}
- or download this
print " Final value :$foo\n";