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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,63360011f8addace X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-17 19:51:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!17b0e3b3!not-for-mail User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: gnat: time-slicing From: "R. Tim Coslet" Newsgroups: comp.lang.ada Message-ID: References: <5ee5b646.0207161329.5c8e387b@posting.google.com> Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit NNTP-Posting-Host: 207.214.214.28 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1026960627 ST000 207.214.214.28 (Wed, 17 Jul 2002 22:50:27 EDT) NNTP-Posting-Date: Wed, 17 Jul 2002 22:50:27 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OX][S_[DFBUYB\H]^JKBOW@@YJ_ZTB\MV@BD]\YIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Date: Thu, 18 Jul 2002 02:50:27 GMT Xref: archiver1.google.com comp.lang.ada:27212 Date: 2002-07-18T02:50:27+00:00 List-Id: Tasking is always potentially "dangerous"!!! That is why Ada provides the features it does to coordinate Tasks (e.g., Protected Objects, requeue, abort, entry calls) and keep them from stepping on each other's data structures. But no Tasking system (Ada or not) can ever be fully deterministic in what runs when! -- R. Tim Coslet r_tim_coslet@pacbell.net Technology, n. Domesticated natural phenomena. > From: Jan Prazak > Newsgroups: comp.lang.ada > Date: Wed, 17 Jul 2002 18:29:25 -0100 > Subject: Re: gnat: time-slicing > > On Tue, 16 Jul 2002 20:29:48 -0100, Robert Dewar wrote: > > >> This is a nonsense example, it is erroneous to do output on the same >> file from two different tasks, since obviously the file is a shared >> variable, and the program violates rules about access to shared > > There is no output to a file. And I think it's an interesting example (if > it works as explained in the tutorial), because it shows that tasking can > be dangerous in some way. >