sasikumar has asked for the wisdom of the Perl Monks concerning the following question:
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(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl threads - just stuck
by sasikumar (Monk) on Mar 13, 2009 at 07:25 UTC | |
|
Re: Perl threads - just stuck
by Anonymous Monk on Mar 13, 2009 at 06:14 UTC | |
by lostjimmy (Chaplain) on Mar 13, 2009 at 13:42 UTC |