meena has asked for the wisdom of the Perl Monks concerning the following question:
There is main running and two threads running,The two threads are infinite event loops where we are waiting for some event,
The issue is I want to wait for the event to come for some finite amount of time and then exit from the program
But when I am exiting the threads are still running
I want to free all the space occupied by this threads and then exit from the script
How to fix this?
How to do a clean up before I exit
How to kill threads thats are never ending
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Kill and free the memory Never ending threads from main
by moritz (Cardinal) on Aug 24, 2013 at 06:35 UTC | |
Re: Kill and free the memory Never ending threads from main
by BrowserUk (Patriarch) on Aug 24, 2013 at 06:35 UTC | |
Re: Kill and free the memory Never ending threads from main
by sundialsvc4 (Abbot) on Aug 25, 2013 at 14:51 UTC |
Back to
Seekers of Perl Wisdom