in reply to Re^5: A suicidal parent OR death of a forking server (Use threads)
in thread A suicidal parent OR death of a forking server
But I believe I am doing exactly that.
Imagine, for a moment the following scenario. I pinched your code above, which makes a simple way to control things. Other things - a black box. So I can send commands to your threaded example above (or something similar to it), like this:
etc.http://localhost:7070/startjobs http://localhost:7070/canceljobs
Now, in my application, the black box controlled by your threaded server example, are jobs started and canceled (worker threads managed by Thread::Pool::Simple). They are different threads than the threads that are implementing the IO::Socket::INET -based command server. (Different in that they are doing different things; pooled worker threads, versus the threads used in the IO::Socket::INET command server itself. Ultimately they are all threads.)
Hmmm, I wonder if that is more clear than before?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: A suicidal parent OR death of a forking server (Use threads)
by BrowserUk (Patriarch) on Mar 06, 2010 at 22:11 UTC | |
by observer111 (Novice) on Jun 06, 2010 at 01:13 UTC | |
by BrowserUk (Patriarch) on Jun 06, 2010 at 11:08 UTC |