comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: File/Record locking in Ada
Date: 1997/03/03
Date: 1997-03-03T00:00:00+00:00	[thread overview]
Message-ID: <1997Mar3.141549.1@eisner> (raw)
In-Reply-To: c4ohd0ncig.fsf@hc17031.hcsd.ca


In article <c4ohd0ncig.fsf@hc17031.hcsd.ca>, demer@hc17031.hcsd.ca (David Emery) writes:
> Just remember that in POSIX, file locks are advisory.

Good point.

In fact, any "locking" scheme voluntarily added to an Ada program
presumes that all other accessors will play be the same rules.

The only way to _guarantee_ that locks are respected is to have
a mechanism which is tied into the record access method, which
means an end to free-form data access which might be present in
an existing Ada program.  Only if that record access method
can be guaranteed to always be used (such as by interaction
with operating system inner modes) is a file or record lock
guaranteed.

Larry Kilgallen




  reply	other threads:[~1997-03-03  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-25  0:00 File/Record locking in Ada Stephen Godwin
1997-02-28  0:00 ` Keith Allan Shillington
1997-03-01  0:00   ` Keith Thompson
1997-03-03  0:00   ` David Emery
1997-03-03  0:00     ` Larry Kilgallen [this message]
1997-03-05  0:00   ` David Emery
replies disabled

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