in reply to What is PERL_COPY_ON_WRITE Compile Option About
CoW refers to a method of optimizing memory usage for multithreaded programs. Consider a program that fork()s after intitlizing a variable. Under normal usage, those variables are copied into the memory space for each program. Under CoW, they point to the orginal variable in the parent. As long as each thread only reads the variables, this is safe. When a modification occurs, the variable is copied into the specific thread's memory space, thus keeping the change from other threads.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is PERL_COPY_ON_WRITE Compile Option About
by ikegami (Patriarch) on Mar 04, 2005 at 17:34 UTC | |
by hardburn (Abbot) on Mar 04, 2005 at 17:38 UTC | |
by DeadPoet (Scribe) on Mar 04, 2005 at 17:44 UTC | |
by hardburn (Abbot) on Mar 04, 2005 at 17:48 UTC | |
by ikegami (Patriarch) on Mar 04, 2005 at 17:49 UTC | |
by hardburn (Abbot) on Mar 04, 2005 at 17:54 UTC | |
by BUU (Prior) on Mar 04, 2005 at 21:59 UTC | |
by ikegami (Patriarch) on Mar 04, 2005 at 22:29 UTC |