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-15 01:44:23 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!mango.news.easynet.net!easynet.net!proxad.net!news.tiscali.fr!deine.net!intgwpad.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: gnat: time-slicing References: User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Message-ID: Date: Mon, 15 Jul 2002 08:44:13 GMT NNTP-Posting-Host: 144.132.42.132 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1026722653 144.132.42.132 (Mon, 15 Jul 2002 18:44:13 EST) NNTP-Posting-Date: Mon, 15 Jul 2002 18:44:13 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:27102 Date: 2002-07-15T08:44:13+00:00 List-Id: Jan Prazak wrote: > > But I want the output to be: > > ab > > ab > > (the tutorial says that this is the output with enabled time-slicing) The solution is to then do... Put_Line ("ab"); New_Line; Put_Line ("ab"); Seriously, this is the answer if you want a particular ordering. If you aren't concerned about the exact ordering (and you program should be independent of the ordering) then the previous is aok. If you want to -test- it with different orderings to see how your program will cope, then you could try putting in... random_delay (scale_factor); which you will have to write, and will delay for a time from 0.0..scale_factor seconds. Dale