Re: Shared Memory and Distributed Objects
Re: Shared Memory and Distributed Objects
- Subject: Re: Shared Memory and Distributed Objects
- From: Dan Bernstein <cocoa-dev%email@hidden>
- Date: Sun, 16 Feb 2003 22:10:12 +0200
On Sunday, February 16, 2003, at 10:00 PM, Kaelin Colclasure wrote:
mmap() is not used with System V shared memory objects (AFAIK). The fd
mmap() wants is a normal filesystem file handle.
[snip]
From what you've described, I'd suggest delving a bit deeper into
mmap().
Thanks. But right now I'm lost. In order to be able to map the same
memory from two processes, what should I do? Specifying a shared memory
object doesn't work (so where *do* they work in Darwin?), so I guess I
should give mmap() a normal filesystem file handle. But then isn't
stuff going to get written to disk by sync() every now and then, even
if I have enough real memory to hold it in, at least unnless I...
tweak various kernel parameters to achieve usable results.)
?
Thanks,
-- Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.