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.9 required=5.0 tests=BAYES_00 autolearn=unavailable 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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Tue, 01 Sep 2015 22:17:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <23506b3b-57f4-4e74-947a-c0655f15d198@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="0903b4fccd19524a858dd481bbd547d7"; logging-data="12810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TGjjjJQURTWBCzDX49d2iNhJbvlICk0Y=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:RIL53/UaJkn+/iUoHSgHKw7VgN4= sha1:KTe6+hoyupks9hIuVV6Pf6j8/3Y= Xref: news.eternal-september.org comp.lang.ada:27685 Date: 2015-09-01T22:17:21+01:00 List-Id: 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.