That does not mean that queue enqueue and dequeue are not working on same queue due to which second program is not working
There is only one program, with three threads (main and two workers, $thr1/$thr2 ), and they all share the same exact one Thread::Queue
See http://perldoc.perl.org/perlthrtut.html#Queues%3a-Passing-Data-Around
In reply to Re^4: Perl thread issue
by Anonymous Monk
in thread Perl thread issue
by gurjit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |