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
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.
|