in reply to Cheating heavyweight threads
Are you using threads in the 5.8 series? If so, don't. They're too buggy for practical use.
To get around copying of everything when ever a thread is spawned. I kick off a speical initiator thread at the begining to spawn the new threads whenever I need them.
Most modern systems support Copy On Write (COW), meaning the two threads will defer copying the data until a thread tries to write to it. Also, forking a new process is cheep under Linux, though YMMV on other systems.
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cheating heavyweight threads
by ysth (Canon) on Aug 02, 2004 at 21:29 UTC | |
by waswas-fng (Curate) on Aug 02, 2004 at 21:59 UTC |