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 X-Google-Thread: 103376,8ddc02527645a844 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-31 01:31:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!news.powertech.no!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: tasking with GNAT 3.14p on windows References: <3e87f4e2$1@epflnews.epfl.ch> From: Ole-Hjalmar Kristensen Message-ID: <7vu1djubmk.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 31 Mar 2003 09:30:39 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1049103039 193.216.12.150 (Mon, 31 Mar 2003 11:30:39 MET DST) NNTP-Posting-Date: Mon, 31 Mar 2003 11:30:39 MET DST Organization: Tele2 Norway AS Public Access Xref: archiver1.google.com comp.lang.ada:35822 Date: 2003-03-31T09:30:39+00:00 List-Id: Rodrigo Garc�a writes: > Bernd Specht wrote: > > Hi, > > I tried an example from "Barnes, 18.8", but it didn't work as > > expected. Any ideas? > > with Text_IO; use Text_IO; > > procedure TaskTest is > > begin > > select > > delay 3.0; > > put_line ("aborted"); > > then abort > > loop null; -- modified > > end loop; > > end select; > > end TaskTest; > > The computation is not aborted (what I would expect). Do I > > misunderstand something? > > > This example works as expected on my Red Hat 7.3 with GNAT 3.15p. I > will try to run it on Windows 2000 to see if that is the problem. > > That would be strange anyway, since GNAT relies on pthreads for > implementing its run-time. Is there a problem with pthreads > implementation on Windows? > > Rodrigo > Unless Microsoft has significantly improved the Pthreads support, it's not a good idea to implement the GNAT runtime on top of Pthreads on Windows. From a quick look at the GNAT runtime, it seems like the native NT interface is used, not Pthreads. -- Ole-Hj. Kristensen ****************************************************************************** * You cannot consistently believe this sentence. ******************************************************************************