in reply to using many threads and conserving stack size
Add $thr->detach; after the create.
On my system I reach a steady state memory usage of around 2.7 MB after a few seconds.
That's with threads v1.71. (YMMV with earlier versions).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using many threads and conserving stack size
by danmcb (Monk) on Nov 12, 2008 at 14:33 UTC | |
by BrowserUk (Patriarch) on Nov 12, 2008 at 17:44 UTC | |
by gone2015 (Deacon) on Nov 12, 2008 at 16:00 UTC | |
by danmcb (Monk) on Nov 12, 2008 at 16:04 UTC | |
by gone2015 (Deacon) on Nov 12, 2008 at 16:26 UTC | |
by danmcb (Monk) on Nov 12, 2008 at 16:43 UTC | |
| |
|
Re^2: using many threads and conserving stack size
by danmcb (Monk) on Nov 12, 2008 at 13:58 UTC |