Posted on 2008-12-02 13:37:12-08 by jdhedden in response to 9478
Re: threads not finished as expected
It is not possible to debug this program because it's dependent on your specific MQ environment. You need to get this down to a small, self-contained script that reproduces the problem.

One problem I do see is that the main thread can terminate before the threads are finished. You need the following at the end of your script:
$thread_th1->join(); $thread_th2->join();
Direct Responses: 9480 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.