Article View: bionet.software.acedb
Article #2840Re: more on locks
From: Bradley K. Sherman
Date: Sat, 25 Sep 1993 16:57
Date: Sat, 25 Sep 1993 16:57
24 lines
1810 bytes
1810 bytes
In article <HCOBB.93Sep24121839@fly2.berkeley.edu> hcobb@fly2.berkeley.edu (Henry J. Cobb) writes:
> ...
> I'll check for spec == "atomic" and do an open() with O_WRONLY |
>O_CREAT | O_EXCL followed by an fdopen() for lockfile itself.
> ...
> All of the OS'es I am aware of have some procedure for atomic file
>creation, and I know of no other IPC which is common to all of them. If
>this is a problem under say VMS or MVS or Novell or Appleshare, etc.,
>please let me know.
> ...
There was a nasty problem with NFS and SunOS 3.x where calls such
as this (open (...O_CREAT...)) appeared to succeed but which did
not preempt similar calls from other workstations. This was
caused by local file caching. I do not know if this feature of
Sun/NFS interaction has been fixed in subsequent releases, or
whether it plagues other NFS implementations.
--bks
--
Bradley K. Sherman P.O. Box 245
Computer Scientist Berkeley, CA, 94701
Dendrome Project 510-559-6437 FAX: 510-559-6440
Institute of Forest Genetics Internet: bks@s27w007.pswfs.gov
Technical Details
Message-ID:
<281t94$5ss@overload.lbl.gov>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!overload.lbl.gov!bksReferences:
<1993Sep23.214236.3664@gserv1.dl.ac.uk> <HCOBB.93Sep24121839@fly2.berkeley.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6d40,55885d0bd44c2676 X-Google-Attributes: gidf6d40,public X-Google-ArrivalTime: 1993-09-25 10:01:54 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!overload.lbl.gov!bks From: bks@s27w007.pswfs.gov (Bradley K. Sherman) Newsgroups: bionet.software.acedb Subject: Re: more on locks Date: 25 Sep 1993 16:57:08 GMT Organization: Dendrome, A Genome Database for Forest Trees Lines: 24 Distribution: bionet Message-ID: <281t94$5ss@overload.lbl.gov> References: <1993Sep23.214236.3664@gserv1.dl.ac.uk> <HCOBB.93Sep24121839@fly2.berkeley.edu> NNTP-Posting-Host: s27w007.pswfs.gov