From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:6084:: with SMTP id u126mr9132759qkb.294.1623513781602; Sat, 12 Jun 2021 09:03:01 -0700 (PDT) X-Received: by 2002:a25:fc1c:: with SMTP id v28mr13256590ybd.277.1623513781470; Sat, 12 Jun 2021 09:03:01 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 12 Jun 2021 09:03:01 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=94.31.98.170; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.98.170 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4db69f85-a3b3-48f8-a41e-8bdf196a8294n@googlegroups.com> Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD From: AdaMagica Injection-Date: Sat, 12 Jun 2021 16:03:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62198 List-Id: There is another importatn point. X and Y are global, and a task may update globals only at dispatching points. So taks One could infact consider Y constant within the loop. You did not specify Volatile.