Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Roger Tucker <roger.tucker@mci.com>
Subject: Re: Require help with msync() functionality in OpenVMS Cluster env.
Date: 1999/12/23	[thread overview]
Message-ID: <386114C9.7DA49293@mci.com> (raw)
In-Reply-To: 83p18s$lf2$1@mailint03.im.hou.compaq.com

I'm not sure what source code Stephen Hoffman is looking at, but
my source code for msync() on the VMS 7.1 source distribution
performs locking.

I'm looking at the file [v71.acrtl.lis]mmap.lis.  I cannot post the
source code, but msync() calls force_invalidate() if (flags &
MS_INVALIDATE).  force_invalidate() increments a sequence number in the
lock value block of a lock, remaps the section, then calls ring_bell().
ring_bell() notifies other processes by taking out an excluseive
lock, then reverts it back to concurrent read.  All other processes
that have the current region mapped are have a blocking ast pending.

I haven't tested this across the cluster but it looks like it
would work.  It's still up to the application to only have
one writer at a time, but the updates should be readable
by any other process that has the same section mapped on
the next access.  If someone has an exmple they can post it, or
if I get time I'll write one.



  reply	other threads:[~1999-12-23  5:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-06  5:00 Require help with msync() functionality in OpenVMS Cluster env Simon Maslin
1999-12-07  5:00 ` Jan Vorbrueggen
1999-12-07  5:00   ` Simon Maslin
1999-12-18  5:00 ` Roger Tucker
1999-12-21  5:00   ` Hoff Hoffman
1999-12-23  5:00     ` Roger Tucker [this message]
1999-12-23  5:00       ` Jan Vorbrueggen
2000-01-13  5:00         ` martin.schmidt
2000-01-14  5:00           ` Jan Vorbrueggen
2000-01-21  5:00           ` Hoff Hoffman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox