Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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


Comment on Re^2: Mmap question
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 drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-08-20 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls