News for hackers. Stuff that matters.
Re:Threads (in Ruby): Enough Already by ericb on Saturday August 14, 2010 @04:25PM (#1603958)
So you won't get much by way of memory savings, but you might expand the volume of work each batch of threads (now on separate processors) could complete if you forked cores - 1 times?
Re:Threads (in Ruby): Enough Already by ww520 on Saturday August 14, 2010 @08:53PM (#1604336)
There are different kinds of memory in a process, e.g. code segment, read-only data segment, and read-write data segment. The code and read-only memory can be shared between the parent and child processes. The read-write memory pages are copied-on-write when they are modified. There can be fair amount of sharing.