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=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:8407:: with SMTP id g7mr11953444qkd.123.1623586274791; Sun, 13 Jun 2021 05:11:14 -0700 (PDT) X-Received: by 2002:a25:2b05:: with SMTP id r5mr18266192ybr.465.1623586274628; Sun, 13 Jun 2021 05:11:14 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 13 Jun 2021 05:11:14 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=174.71.119.33; posting-account=ix5KpAoAAAD9zo_4u1FxHVmn1uZn7U_d NNTP-Posting-Host: 174.71.119.33 References: <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com> <3b70ea2b-9783-48a3-999c-55486126ec9dn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6112f904-2ae8-46f6-8822-f1562ba7193en@googlegroups.com> Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD From: Dan Winslow Injection-Date: Sun, 13 Jun 2021 12:11:14 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62215 List-Id: On Sunday, June 13, 2021 at 5:24:29 AM UTC-5, J-P. Rosen wrote: > Le 13/06/2021 =C3=A0 00:21, Dan Winslow a =C3=A9crit :=20 > > So, I am puzzled. Nothing I do makes any different whatsoever in how th= e little test program runs. > Hmmm... Scheduling matters only if you have less CPUs than tasks. If you= =20 > have two tasks and more than two CPUs, the tasks will effectively run=20 > concurrently, and priorities have no effect.=20 >=20 > --=20 > J-P. Rosen=20 > Adalog=20 > 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX=20 > Tel: +33 1 45 29 21 52=20 > https://www.adalog.fr I know how multiprocessing works. I am using an Annex D facility that is su= pposed to set non-preemptive, and both tasks are on the same core (assuming= THAT works on windows). One task should monopolize, then the next, and the= n main terminate.