From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c78d085847f47af X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: file locking in Ada Date: 1997/03/28 Message-ID: #1/1 X-Deja-AN: 229120606 References: <333BB430.BF8@aston.ac.uk> <5hglog$lf8@top.mitre.org> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-03-28T00:00:00+00:00 List-Id: Michael Brenner said (answering a query about file locking) <. If you want simulatneous reads and locked writes, an interesting possibility is to use a protected type, and use functions for the reads and procedures for the writes. Of course your implementation has to allow parallel function calls, which many implementations will not bother with. Also, in some implementations, a file read/write might be declared a potentially blocking operation and not be permitted. It is a pity that protected records have these abstraction glitches :-)