Your skill will accomplish
what the force of many cannot
Hanging Threadsby WalkingZero (Sexton)
|on Aug 18, 2007 at 05:14 UTC
WalkingZero has asked for the wisdom of the Perl Monks concerning the following question:
Need some help. Currently the program is running 4 separate threads, pulling data off a queue to establish it's given task. The sub runs a while loop based off the queue's pending function. The threads all exit their while loops correctly. However after the sub should be done, the joins never occur. I can't quite figure out what's causing the lockup. Any help would be appreciated. Here's the censored version of the code:
The program is for testing mail server latency. I have edited out server information and omitted the has that contains the logins. This is all the relevant pieces of code though.