Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Mmap question

by leriksen (Curate)
on Jan 31, 2005 at 12:14 UTC ( #426563=note: print w/replies, xml ) Need Help??


in reply to Re: Mmap question
in thread Mmap question

Well I guess thats true, but isnt that more a case of sharing the file, rather than the memory ?

I believe the OP wanted to share the memory allocated my mmap (sharing the address returned by mmap, which isnt possible across unrelated processes).

Maybe that just being pedantic - changes made to the mmap'ed region by one process are almost immediately visible by the other - if thats the level of control required, cool. shmXXX allows for finer grained control, by using data structures in memory - possible in a file but not without some serious work serialising to and from the file representation.

...it is better to be approximately right than precisely wrong. - Warren Buffet

Replies are listed 'Best First'.
Re^3: Mmap question
by sgifford (Prior) on Jan 31, 2005 at 17:06 UTC
    I don't understand this:
    shmXXX allows for finer grained control, by using data structures in memory - possible in a file but not without some serious work serialising to and from the file representation.
    How does a SysV shared memory segment support data structures differently than mmap? I've always used them pretty much interchangeably...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2016-10-01 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.