Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Kill and free the memory Never ending threads from main

by moritz (Cardinal)
on Aug 24, 2013 at 06:35 UTC ( #1050770=note: print w/ replies, xml ) Need Help??


in reply to Kill and free the memory Never ending threads from main

When you terminate the process, your operating system will clean up all the other threads for you.

To quote perlthrtut:

An action that terminates a process will terminate all running threads. die() and exit() have this property, and perl does an exit when the main thread exits, perhaps implicitly by falling off the end of your code, even if that's not what you want.

The rest of that section might also be relevant for you.


Comment on Re: Kill and free the memory Never ending threads from main

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-12-28 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls