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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.249.197 with SMTP id yw5mr7966114pac.34.1409947506206; Fri, 05 Sep 2014 13:05:06 -0700 (PDT) X-Received: by 10.140.104.235 with SMTP id a98mr172qgf.40.1409947505931; Fri, 05 Sep 2014 13:05:05 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!r2no15128314igi.0!news-out.google.com!q8ni6qal.1!nntp.google.com!dc16no1476556qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 5 Sep 2014 13:05:05 -0700 (PDT) In-Reply-To: <8c587c07-fde3-45c7-8d8e-c3541ea4e0e4@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.240.227.47; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 87.240.227.47 References: <6967b17b-acb9-4b44-b21a-6ddcab1e1065@googlegroups.com> <8c587c07-fde3-45c7-8d8e-c3541ea4e0e4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Strange behavior From: Laurent Injection-Date: Fri, 05 Sep 2014 20:05:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:188881 Date: 2014-09-05T13:05:05-07:00 List-Id: Am Freitag, 5. September 2014 21:47:19 UTC+2 schrieb sbelm...@gmail.com: > On Friday, September 5, 2014 3:30:51 PM UTC-4, Laurent wrote: >=20 > >=20 >=20 > > The order of the tasks executing is random and that is ok but why is i= t changing and why is the New_Line zapped? >=20 > >=20 >=20 >=20 >=20 > Because the order of the tasks is random; what else would you expect? Th= e new lines aren't zapped, its just that the OS switches tasks after the Pu= t_Line but before the New_Line. You get it back the next time, hence the b= lank space (two CR/LFs in a row). >=20 >=20 >=20 > -sb Because the sample run in the book looks a bit different. More like this: Hello from Task A Hello from Task B=20 Hello from Task A Hello from Task B=20 Hello from Task A=20 Hello from Task B=20 Hello from Task A=20 Hello from Task B=20 Hello from Task A Hello from Task B=20 or=20 Hello from Task B=20 Hello from Task A Hello from Task B=20 Hello from Task A . . . No sudden inversion of the order.=20 What has the switching of the tasks to do with this? Shouldn't the delay 0,= 1 prevent that? That's an eternity for a computer. The New_Line is part of = the task? Or is the OS trying to do me a favor by distributing the task on = different cores which produces garbage?=20 Sorry for the noob questions The more I learn about programming the more I understand that I don't even = have scratched the surface. Thanks Laurent