Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-01-24 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (204 votes). Check out past polls.