The strange part is i never see the print message for "started thread" It seems like program is stuck with the first thread.... an idea? Thanks SasiKumaruse threads; threads->create(\&start(),""); threads->create(sub {print "started thread\n"},""); threads->join(); sub start() { print "processing ...\n"; while(1) { sleep(5); print "test\n"; threads::yield(); } }
In reply to Perl threads - just stuck by sasikumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |