Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

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"
               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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2023-06-01 13:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found