Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Perl forked processes and variable sharing

by LanX (Saint)
on Feb 02, 2022 at 01:01 UTC ( [id://11141042]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl forked processes and variable sharing
in thread Perl forked processes and variable sharing

your code is hard to read for me, part of the problem is that you used <pre> instead of <code> tags.

> 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
    Hi again Rolf,

    I had tried enclosing my code in <code></code> tags, but found that all of my lines that were longer than a certain length were flowing onto the next line instead of just extending out to their full length, e.g.

    <code>
    This is a moderately long line of code which I would expect to see flo +wing all the way across the page.
    </code>

    I couldn't find a way to prevent that, so I tried <pre></pre> instead and it worked, e.g..

    <pre>
    This is a moderately long line of code which I would expect to see flowing all the way across the page.
    
    </pre>

    Thanks, Richard

      Hello fireblood,

      I had tried enclosing my code in <code></code> tags, but found that all of my lines that were longer than a certain length were flowing onto the next line...

      That’s not a bug, it’s a feature! Just find your Settings Nodelet and choose Display, then under Code List Settings make the value of Code Wrap Length larger (whatever suits your display)1 — and you can return to using <code> tags with no problems. :-)

      1Update: This only affects your view of the code; other monks see the same code wrapping according to their personal display settings.

      Hope that helps,

      Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-17 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found