Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Nasty MultiThread problem

by JFarr (Sexton)
on Nov 18, 2005 at 22:14 UTC ( [id://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.

Replies are listed 'Best First'.
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.
Re^3: Nasty MultiThread problem
by BrowserUk (Patriarch) 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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-18 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found