Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Nasty MultiThread problem

by JFarr (Sexton)
on Nov 18, 2005 at 22:14 UTC ( #509978=note: print w/ replies, xml ) Need Help??


in reply to Re: Nasty MultiThread problem
in thread Nasty MultiThread problem

I had used that. That did not stop the thread from exiting. I had a 3 second delay from an AnalogGateway, and the thread terminated. Thanks for the reply.


Comment on Re^2: Nasty MultiThread problem
Re^3: Nasty MultiThread problem
by BrowserUk (Pope) on Nov 18, 2005 at 22:33 UTC
    I had used that. That did not stop the thread from exiting.

    Then you must be calling it at the wrong place in the code.

    It is difficult to try to help further as the code you have posted has at least twothree missing close braces.

    Neither of these if statement bodies are closed.

    if( $serParProcessing eq "P" ) { if( $owsagProcessing eq "P" ) {

    Nor is this subroutine.

    sub locateSysHost_Parallel:locked {


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: Nasty MultiThread problem
by liz (Monsignor) on Nov 18, 2005 at 23:23 UTC
    Then you're probably not joining all active threads, either from not storing hem correctly or for some other reason (I did not look at your code). One way of ensuring that you close all threads:
    $_->join for threads->list();
    According to the pod of "threads"
    threads->list();
               This will return a list of all non joined, non detached threads.
    
    Hope this helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-07-28 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls