in reply to Re^3: What is PERL_COPY_ON_WRITE Compile Option About
in thread What is PERL_COPY_ON_WRITE Compile Option About
Similar yes, but the difference is how they share memory. Threads, by definition, share memory so that changing a variable in one thread changes the the same variable in all other threads of that process.
Are you're saying that:
1) CoW saves memory when creating new processes by sharing memory until a modification is made to to that part of memory, and
2) CoW prevent threads from sharing modified variables like they normally do?
That seems odd to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: What is PERL_COPY_ON_WRITE Compile Option About
by hardburn (Abbot) on Mar 04, 2005 at 17:54 UTC | |
|
Re^5: What is PERL_COPY_ON_WRITE Compile Option About
by BUU (Prior) on Mar 04, 2005 at 21:59 UTC | |
by ikegami (Patriarch) on Mar 04, 2005 at 22:29 UTC |