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); }


Comments
Post a Comment