From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,71dc3ff9d9cd593c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-11-15 11:51:46 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!gatech!concert!decwrl!adobe!kolling From: kolling@adobe.com (Karen Kolling) Subject: Re: HELP NEEDED: SHARING STREAMS FILES Message-ID: <1993Nov15.191914.19330@adobe.com> Keywords: vms, share, flush Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View References: <1993Nov15.155720.5995@hns.com> Date: Mon, 15 Nov 1993 19:19:14 GMT 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 ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^