in reply to Re^4: 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.I'm not sure where you're getting this, but the perl threads, at least in 5.8, aren't shared by default. Every process gets it's own copy of all of the variables and such, unless you explicitly share them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: What is PERL_COPY_ON_WRITE Compile Option About
by ikegami (Patriarch) on Mar 04, 2005 at 22:29 UTC |