Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kolling@adobe.com (Karen Kolling)
Subject: Re: HELP NEEDED: SHARING STREAMS FILES
Date: Mon, 15 Nov 1993 19:19:14 GMT	[thread overview]
Message-ID: <1993Nov15.191914.19330@adobe.com> (raw)
In-Reply-To: 1993Nov15.155720.5995@hns.com

In article <1993Nov15.155720.5995@hns.com> oneil@hns.com (Pat O'Neil) writes:
>I'm having trouble with VMS V5.5-1 and sharing of STREAMS files.
>I have two processes accessing a shared file.  I'm using VMS locks
>to control access to the file.  Unfortunately, changes made by one 
>process aren't always immediately visible to the other process.
>The application is in C.  Both processes open the file for
>shared access.  What good is sharing a file between two processes
>if changes by one process are not apparent to the other?

I'm not familiar with that area of VMS, but as a file systems weenie,
I'll hazard a guess that the changes are often still in an unshared
cache and about to/in the process of going out to disk when the
next process gets the lock and does a read, and what you need to do
is have each process do the equivalent of a UNIX flush (write all
dirty pages to disk) operation (and be sure it completes) before the
process releases the lock.
-- 
Karen Kolling        kolling@adobe.com or kolling@netcom.com

 ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^


  reply	other threads:[~1993-11-15 19:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-15 15:57 HELP NEEDED: SHARING STREAMS FILES Pat O'Neil
1993-11-15 19:19 ` Karen Kolling [this message]
1993-11-16 16:47 ` Ken Cowan
1993-11-16 20:12   ` Karen Kolling
1993-11-16 20:56     ` Karen Kolling
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