in reply to Re^6: A suicidal parent OR death of a forking server (Use threads)
in thread A suicidal parent OR death of a forking server

  1. My example doesn't use a pool of threads. It starts a new thread for each connecting client.

    For low levels of concurrency and long-lived connections this is more reliable.

  2. It's about 50 lines of code with no need for the 300 lines of T::P::S, or the unnecessary 60 lines of T::S or Storable.

    With complexity comes bugs.

But ultimately, it's your code, and if it's working for you and achieves the performance you require, that's great. Good luck.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"
  • Comment on Re^7: A suicidal parent OR death of a forking server (Use threads)

Replies are listed 'Best First'.
Re^8: A suicidal parent OR death of a forking server (Use threads)
by observer111 (Novice) on Jun 06, 2010 at 01:13 UTC

      Glad to have helped :)

      If your code isn't secret, or if it can be easily sanitised, care to post it here?

      Good (real) examples of threading are rare enough that every new example really helps to strengthen the knowledge base.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.