in reply to Re: Threads memory consumption is infinite
in thread Threads memory consumption is infinite
So instead of spawing a new one as an old one dies off, push the dying one onto the @ready array, and shift one off for the next thread. Believe me, it works and is solid, and avoids the refcount problem.( To avoid confusion, when you get a worker, a little popup appears that spawns an xterm, just close the xterm to start the thread running. On win32 change the cmd to something that works. I did this to give a visual indication that the thread was actually doing something).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Threads memory consumption is infinite
by BrowserUk (Patriarch) on Jun 10, 2008 at 20:02 UTC | |
by zentara (Cardinal) on Jun 10, 2008 at 20:08 UTC | |
by Godsrock37 (Sexton) on Jun 11, 2008 at 14:01 UTC | |
|
Re^3: Threads memory consumption is infinite
by Godsrock37 (Sexton) on Jun 11, 2008 at 14:44 UTC | |
by zentara (Cardinal) on Jun 11, 2008 at 17:32 UTC |