comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: file locking in Ada
Date: 1997/03/28
Date: 1997-03-28T00:00:00+00:00	[thread overview]
Message-ID: <1997Mar28.111002.1@eisner> (raw)
In-Reply-To: 5hglog$lf8@top.mitre.org


In article <5hglog$lf8@top.mitre.org>, mfb@mbunix.mitre.org (Michael F Brenner) writes:
> In any language, such as Ada or C, you can call an underlying operating
> system or file management system, such as Mips OS, VxWorks, Desqview,
> Apple OS, CP/M, Starlet, Linus, DOS, etc. 
> 
> Ada is a lanaguage which lets you implement file locking within the
> language itself. Set up a task which processes all requests for files.
> Lets say you are using this for a database management system with
> file-at-a-time access, since you wish to have file locking instead of
> record locking. Therefore your operations will be a subset of relational
> algebra, such as the following: select, merge (or join), import, delete,
> and update. Each of these operations would be an entry in the file
> request task. No other software talks to the files except through
> that file request task. The task processes the requests one at a time,
> and that implements TOTAL file locking. 

Ensuring that no other software accesses the file, however, is a local
problem unless you rely on an operating system guarantee.  Such an
operating system guarantee can only be foolproof if it uses inner
modes or other hardware protection (i.e., not DOS).

Larry Kilgallen




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

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-28  0:00 file locking in Ada Neil Goodgame
1997-03-28  0:00 ` Michael F Brenner
1997-03-28  0:00   ` Larry Kilgallen [this message]
1997-03-28  0:00   ` Robert Dewar
1997-03-29  0:00     ` Robert A Duff
1997-03-29  0:00       ` Robert Dewar
1997-04-01  0:00         ` Robert A Duff
1997-03-29  0:00       ` Robert Dewar
1997-04-01  0:00         ` Robert A Duff
1997-03-30  0:00 ` Nick Roberts
replies disabled

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