cygwin-perl enable multithreading -


i using perl version 5.22 cygwin. not able figure out problem in following code. looks multi threading not enable or something. when ran following code terminated without message.

use warnings; use threads;  sub threaded_task {      threads -> create(sub {           print "starting thread\n";         sleep(2);         print "ending thread\n";       });  }  while(1) { threaded_task("arjun"); print "main thread\n"; sleep (2);  } 

64 bit config : enter image description here

32 bit config: enter image description here


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -