in reply to Cheating heavyweight threads

POE and threads? Interesting concept. I don;t know of any reason it wouldn;t work, but I've barely scratched the surface of POE. I don;t really see the need for it once you have threads...but maybe I missing the point.

Anyway. I think that the golden rule with iThreads is "Don't spawn-on-demand: Pool!".

Do you have a testcase?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Cheating heavyweight threads
by flogic (Acolyte) on Aug 03, 2004 at 13:02 UTC

    POE seems to help for managing the communcation between threads. Especially for my main thread which is primarily a Tk gui app and the child threads are just there to keep things reponsive.

    I don't have a test case but it may not be a big deal to make one.

      If a testcase that demonstrated the slow spawning of threads that you queried, was available, it might be possible for people to see ways of helping you solve it, or determine that there is a bug and report it.

      The situation you describe has a complex set of components and timings. Attempting to reproduce such a scenario blind would be guesswork.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon