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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Sat, 05 Sep 2015 17:52:18 +0200 Organization: A noiseless patient Spider Message-ID: References: <23506b3b-57f4-4e74-947a-c0655f15d198@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 5 Sep 2015 15:50:29 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8345e58a26fd519be507aa0186b6063e"; logging-data="16801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vRWw+RljoNXlqd+Me7POx" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 In-Reply-To: Cancel-Lock: sha1:/4R9m0AdC2u7zgqr6DToZJvwH7E= Xref: news.eternal-september.org comp.lang.ada:27712 Date: 2015-09-05T17:52:18+02:00 List-Id: On 2015-09-01 23:17, Simon Wright wrote: > brbarkstrom@gmail.com writes: > >> I'm still not sure why the alternate processes you're referring to >> wouldn't be Ada Tasks. > > Because they aren't? > > If in one terminal I say "./a_program" then a_program is a process > running under the OS. It may contain many Ada tasks. If in another > terminal I say "./another_program" then another_program is another > process running under the OS, which may contain a whole lot of Ada > tasks, which know nothing about a_program's tasks. OP wants to ensure > exclusive access to a file between the two processes. > Or it can be notepad.exe ... Or anything else that is NOT a process written in ada -- -- Björn