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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: tasks in queue Date: Thu, 09 Oct 2014 14:14:44 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 9 Oct 2014 12:13:52 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="23e59b4906029a0ce22afc4c4b1f25ee"; logging-data="6342"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19a4qTWaPVZuQtLbA49RKEd" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 In-Reply-To: Cancel-Lock: sha1:Icg/Rvw35GFvZPxSkwsI3stfaL8= Xref: number.nntp.giganews.com comp.lang.ada:189580 Date: 2014-10-09T14:14:44+02:00 List-Id: On 2014-10-09 13:57, Stribor40 wrote: > > But this explanation says also "the Ada definition does not specify which will be serviced first". > also if in the main you have something like.... > > calling .....First_Task > calling..... Second_Task > calling......Third_Task > > since this is sequentially executed doesn't that guarantee First_Task will run first? > Well First_Task will be first to start, I think. But imagine that the scheduler (on a single core machine) stops First_Task, just after it started, and then gives Second_Task enough time to complete a full get-me-food circle. Then the scheduler changes to the third task and lets it complete a full circle. Then First_Task is given attention again, so it could complete its cycle. You then get Second, Third, and First. -- -- Björn