in reply to Re^2: Perl forked processes and variable sharing
in thread Perl forked processes and variable sharing
> What the child process finds at that passed address is exactly the same value that the parent wrote to that address
when did you write to that address?
If it's prior to forking, the value was copied.
If the effect happens after forking, it could be a bug in COW (at least I wouldn't expect this)
> but after the child writes to that address what happens behind the scenes is that that physical address is not overwritten in place,
I'd say that's pretty much a description of COW = Copy On Write
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl forked processes and variable sharing
by fireblood (Scribe) on Feb 02, 2022 at 01:23 UTC | |
by Athanasius (Archbishop) on Feb 02, 2022 at 08:20 UTC |