Record Locking Help ....
Ben Duncan
bns
Tue Aug 16 08:51:39 PDT 2005
Good, then mmap is it !!!
I already have started breaking apart tdb. I do not need certain
parts of it, and I need to add other parts.
In particular, I will be adding the "list" functionality from
S-lang and some marshalling and un-marshalling routines to create
the multi-value concept.
Thanks ...
Roger Oberholtzer wrote:
> On Tue, 2005-08-16 at 14:44, Ben Duncan wrote:
>
> Each mmap is independent. It is per-process. Just like the open/close.
> How the different processes see updates from another process is a bit
> unclear to me. I think (could be wrong) they share any file segment by
> the virtual memory system mapping the same memory page into each
> process. Which is why you need the locks. But this may also mean that
> the changes may be seen by the other processes before they are sent to
> disk with msync. Or maybe it is the MS_INVALIDATE flag to msync that
> will cause this to happen.
>
>
>>
>>Thanks ...
>>
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
More information about the Linux-users
mailing list