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 14:04:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.cwix.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: gnat: time-slicing References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.112.200.144 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1026767009 ST000 67.112.200.144 (Mon, 15 Jul 2002 17:03:29 EDT) NNTP-Posting-Date: Mon, 15 Jul 2002 17:03:29 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: [[PGGTSDZRRQBQH]]RKB_UDAZZ\DPCPDLXUNNHLIWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Mon, 15 Jul 2002 21:03:29 GMT Xref: archiver1.google.com comp.lang.ada:27122 Date: 2002-07-15T21:03:29+00:00 List-Id: > But I want the output to be: > > ab > > ab > So you not only want time-slicing, you want it to occur during the two 'Put_Line("a");'s, but not during the 'Put_Line("B");'s, in fact after the 'a' has been output and before the crlf, and you want Text_IO to be reentrant in the sense that two writes to the same file can interleave without screwing up. That's asking for quite a lot. As has been pointed out, if you want to control task switching you can do it with "delay 0.0;" or other explicit task switching commands. If you leave it up to the particular OS on the particular computer on the particular day running the particular load you happen to hit, you'll just have to take whatever you get. You may want to try running Timetest, see www.adapower.com/reuse/tt.html