in reply to Re^2: Perl threading problem?
in thread Perl threading problem?
But even so, both threads do run eventually, it just takes a while before they get spawned:
C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**8-1 } , 1..2" 1 2 C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**85-1 } , 1..2" 1 2 C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**859-1 } , 1..2" 1 2 C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**8594-1 } , 1..2" 1 2 C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**85943-1 } , 1..2" 1 2 C:\test>perl -Mthreads -Mbignum -wE"$_->join foreach map async { say t +hreads->tid; 2**859433-1 } , 1..2" 1 2
|
|---|