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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d5977aa20216d24a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-03 03:28:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!news-koe1.dfn.de!news.rhrz.uni-bonn.de!not-for-mail From: Matthias Kretschmer Newsgroups: comp.lang.ada Subject: Re: Ada Tasks vs Linux processes Date: Tue, 03 Apr 2001 12:28:02 +0100 Organization: RHRZ - University of Bonn (Germany) Message-ID: <3AC9B3C2.C01BCCF@gmx.net> References: <2OHx6.4154$NR.335287@news3.oke.nextra.no> <4R4y6.3229$R6.68334@news1.oke.nextra.no> NNTP-Posting-Host: zeus.informatik.uni-bonn.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: f1node01.rhrz.uni-bonn.de 986293427 31858 131.220.4.23 (3 Apr 2001 10:23:47 GMT) X-Complaints-To: usenet@f1node01.rhrz.uni-bonn.de NNTP-Posting-Date: 3 Apr 2001 10:23:47 GMT X-Mailer: Mozilla 4.61 [de] (OS/2; U) X-Accept-Language: de Xref: supernews.google.com comp.lang.ada:6395 Date: 2001-04-03T10:23:47+00:00 List-Id: Frank wrote: > Hi! > > It seems to me (after some more searching in select -statement variations) > that the I should use the construction select...or.._else_ to achieve what I > intended. > > But this disussion brings another question to my mind; from some e-threads I > read here I have got the impression that I _have_ to perform delay n; in the > code so that all tasks get a slice of the execution (perhaps this goes for > OS or CPU that does not handle HW multitasking or something?) Is this a > true, or can I assume that Ada (and/or the OS it is running in) slices > executions on every platform it is implemented? > I can understand that a delay n; makes good sense if a task does not have to > execute continously and a delay therefore can give execution slices to other > tasks instead. > It is true, that on systems which do not support preemptive multitasking or on which you ada-compiler doesn't support this, you need delay statements to switch between threads. (e.g. the gnat on FreeBSD (from ports-collection 4.2-stable) doesn't support the os-implementation of threads and simulates non-preemptive - without delay statements on this system with this compiler your active thread won't change) > > Frank