Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

With your bare hands?!?


devel / comp.lang.ada / Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

SubjectAuthor
* non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
+* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDmitry A. Kazakov
|`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDAdaMagica
| +* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDmitry A. Kazakov
| |`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDAdaMagica
| | +* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDmitry A. Kazakov
| | |`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| | | `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| | |  +* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDennis Lee Bieber
| | |  |`- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDennis Lee Bieber
| | |  `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDJ-P. Rosen
| | |   `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| | `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDRandy Brukardt
| |  +* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDdarek
| |  |`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDmitry A. Kazakov
| |  | `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDdarek
| |  `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| |   `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDJeffrey R. Carter
| |    `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| |     +* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| |     |+- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| |     |`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDJeffrey R. Carter
| |     | `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
| |     |  `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDennis Lee Bieber
| |     `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDennis Lee Bieber
| `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDAdaMagica
|  `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDNiklas Holsti
|   +- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
|   `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDAdaMagica
`* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
 `* Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDan Winslow
  `- Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMDDennis Lee Bieber

Pages:12
Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<63c95f00-e760-43de-b374-3473b07b9dbfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5405&group=comp.lang.ada#5405

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:e215:: with SMTP id g21mr12637914qki.37.1623603032669; Sun, 13 Jun 2021 09:50:32 -0700 (PDT)
X-Received: by 2002:a25:75d6:: with SMTP id q205mr18369823ybc.339.1623603032529; Sun, 13 Jun 2021 09:50:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr3.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 09:50:32 -0700 (PDT)
In-Reply-To: <5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com>
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: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com> <sa2bpc$it8$1@gioia.aioe.org> <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com> <sa2lhe$ig3$1@gioia.aioe.org> <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com> <sa482l$ocp$1@franka.jacob-sparre.dk> <26182d75-4a84-47d2-b151-bbcb01964fabn@googlegroups.com> <sa50fc$db5$1@dont-email.me> <14166772-2507-4953-8843-57fe35b0f6fbn@googlegroups.com> <5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <63c95f00-e760-43de-b374-3473b07b9dbfn@googlegroups.com>
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
From: dandwins...@gmail.com (Dan Winslow)
Injection-Date: Sun, 13 Jun 2021 16:50:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 41
 by: Dan Winslow - Sun, 13 Jun 2021 16:50 UTC

On Sunday, June 13, 2021 at 11:46:23 AM UTC-5, Dan Winslow wrote:
> On Sunday, June 13, 2021 at 11:44:00 AM UTC-5, Dan Winslow wrote:
> > On Sunday, June 13, 2021 at 8:16:31 AM UTC-5, Jeffrey R. Carter wrote:
> > > On 6/13/21 2:06 PM, Dan Winslow wrote:
> > > >
> > > > Well. You are confirming that I shouldn't expect the behavior I am looking for? How does linux do in this regard, I could use it if needed.
> > > with Xubuntu 21.04 and GNAT 11 I get
> > >
> > > ~/Code$ ./winslow
> > > 8 CPUs
> > > one
> > > Task one done, x= 1000001
> > > two
> > > Task two done, y= 1000001
> > > main done, x 1000001 y 1000001
> > >
> > > I get this with or without the scheduling pragma in gnat.adc.
> > >
> > > --
> > > Jeff Carter
> > > "Don't knock masturbation. It's sex with someone I love."
> > > Annie Hall
> > > 45
> > Yep, just found that myself. So, I guess since the tasks get mapped onto underlying os threads, windows has its own ideas and does things like automatic priority promotion and other non-compliant stuff. Too bad, but I guess kind of makes sense because windows does everything possible, most likely, to prevent any kind of thread monopolization. Would be nice if the gnat windows version at least threw a warning that 'hey, it's legal, but it aint gonna work on windows'.
> >
> > So, works perfectly on linux. Probably would on windows too if I knew how to swap out for a pthreads implementation on windows.
> >
> > Thanks!
> Odd that it doesn't require the gnat.adc pragma though. I suppose linux is counting on delay statements or other sync points to swap. For what I need, that's perfect.
Order of start on the two tasks is random on linux, too. It's usually task one but sometimes task 2 starts first.

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<be4d34dc-d899-4341-ab63-0ddb44b97cefn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5406&group=comp.lang.ada#5406

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:7c99:: with SMTP id y25mr12917123qtv.239.1623606089228;
Sun, 13 Jun 2021 10:41:29 -0700 (PDT)
X-Received: by 2002:a5b:58e:: with SMTP id l14mr20415718ybp.303.1623606089062;
Sun, 13 Jun 2021 10:41:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Sun, 13 Jun 2021 10:41:28 -0700 (PDT)
In-Reply-To: <iikb6gFrhljU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.98.170; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.98.170
References: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com>
<sa2bpc$it8$1@gioia.aioe.org> <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com>
<4db69f85-a3b3-48f8-a41e-8bdf196a8294n@googlegroups.com> <iikb6gFrhljU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <be4d34dc-d899-4341-ab63-0ddb44b97cefn@googlegroups.com>
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Sun, 13 Jun 2021 17:41:29 +0000
Content-Type: text/plain; charset="UTF-8"
 by: AdaMagica - Sun, 13 Jun 2021 17:41 UTC

Niklas Holsti schrieb am Samstag, 12. Juni 2021 um 20:02:58 UTC+2:
> I haven't found any connection between dispatching points and updates to
> globals in RM Annex D, where dispatching points are defined.
> > So taks One could infact consider Y constant within the loop.

Hm, you're right, I cannot find such a statement in the post-Ada83 RM.

Ada 83 ,9.11, has it. These points are called sychronization points.

I learned Ada in the 80s - old memories stick.

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<sa5g58$lt4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5407&group=comp.lang.ada#5407

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.not.acm.org (Jeffrey R. Carter)
Newsgroups: comp.lang.ada
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
Date: Sun, 13 Jun 2021 19:44:08 +0200
Organization: Also freenews.netfront.net; news.tornevall.net;
news.eternal-september.org
Lines: 11
Message-ID: <sa5g58$lt4$1@dont-email.me>
References: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com>
<sa2bpc$it8$1@gioia.aioe.org>
<aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com>
<sa2lhe$ig3$1@gioia.aioe.org>
<1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com>
<sa482l$ocp$1@franka.jacob-sparre.dk>
<26182d75-4a84-47d2-b151-bbcb01964fabn@googlegroups.com>
<sa50fc$db5$1@dont-email.me>
<14166772-2507-4953-8843-57fe35b0f6fbn@googlegroups.com>
<5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Jun 2021 17:44:08 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="852a6f9ab9390b0ee51f369755eec176";
logging-data="22436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r9BrHb4BVwdRV6kdV4iSo/XKpFwSIsUM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.8.1
Cancel-Lock: sha1:NRISUqh+29aDFZH3MNWr1j1E3iQ=
In-Reply-To: <5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R. Carter - Sun, 13 Jun 2021 17:44 UTC

On 6/13/21 6:46 PM, Dan Winslow wrote:
>
> Odd that it doesn't require the gnat.adc pragma though. I suppose linux is counting on delay statements or other sync points to swap. For what I need, that's perfect.

I'm surprised the tasks don't swap when one does I/O.

--
Jeff Carter
"Don't knock masturbation. It's sex with someone I love."
Annie Hall
45

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<98e0acbd-eba6-4c41-b677-7a2208201cf1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5409&group=comp.lang.ada#5409

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:cc6:: with SMTP id 189mr13972991qkm.261.1623620625563;
Sun, 13 Jun 2021 14:43:45 -0700 (PDT)
X-Received: by 2002:a25:e658:: with SMTP id d85mr7897605ybh.165.1623620625282;
Sun, 13 Jun 2021 14:43:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Sun, 13 Jun 2021 14:43:45 -0700 (PDT)
In-Reply-To: <sa4i8g$10oo$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c00:c1d:4b00:6504:2af1:1ca4:316f;
posting-account=-iT6ZQoAAAAlqBCInAc-vB6x1soT8Jhq
NNTP-Posting-Host: 2001:1c00:c1d:4b00:6504:2af1:1ca4:316f
References: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com>
<sa2bpc$it8$1@gioia.aioe.org> <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com>
<sa2lhe$ig3$1@gioia.aioe.org> <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com>
<sa482l$ocp$1@franka.jacob-sparre.dk> <a670da34-30e1-4c36-a404-590ac9ffcbban@googlegroups.com>
<sa4i8g$10oo$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <98e0acbd-eba6-4c41-b677-7a2208201cf1n@googlegroups.com>
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
From: darek.ma...@gmail.com (darek)
Injection-Date: Sun, 13 Jun 2021 21:43:45 +0000
Content-Type: text/plain; charset="UTF-8"
 by: darek - Sun, 13 Jun 2021 21:43 UTC

On Sunday, 13 June 2021 at 11:13:55 UTC+2, Dmitry A. Kazakov wrote:
> On 2021-06-13 10:04, darek wrote:
> > On Sunday, 13 June 2021 at 08:20:08 UTC+2, Randy Brukardt wrote:
> >> "AdaMagica" <christ-u...@t-online.de> wrote in message
> >> news:1d798609-8b73-4bc6...@googlegroups.com...
> >>> Dmitry A. Kazakov schrieb am Samstag, 12. Juni 2021 um 17:57:39 UTC+2:
> >>>> Because under Windows the default priority is in the time sharing class.
> >>>> As the name suggests such threads are preempted when the their quant
> >>>> expires. AFAIK, even a lower priority thread can preempt a higher
> >>>> priority one if both are time sharing. Time sharing priority only
> >>>> influences the duration of the quant and the chances to gain the
> >>>> processor.
> >>>
> >>> Hm OK. Is this compatible with the Ada RM?
> >> Not really, at least in an Annex D sense. (The core doesn't require much, in
> >> part so Ada will work on a wide variety of targets.) Pretty much everyone
> >> has agreed to ignore the impossibility of implementing Annex D on Windows --
> >> remember that there is an "impossible or impractical" exception in 1.1.3
> >> which certainly applies in this case. Indeed, I suspect that it is
> >> impossible to implement all of Annex D on any target other than a bare
> >> machine. (One example is that there is no known implementation of EDF
> >> scheduling even though Annex D seems to require it to be implemented.)
> >>
> >> Randy.
> >
> >
> > Hi All,
> > It could be useful for Ada community - a bit different (and refreshing) approach :
> >
> > https://www.research-collection.ethz.ch/bitstream/handle/20.500.11850/154828/eth-47094-02.pdf
> Maybe I am wrong, but it looks to me like these guys spent 30 years in a
> time capsule.
>
> What the paper describes is basically Ada 95 protected action.
> "uncooperative" = protected action. [They do refer Ada once, but not its
> protected objects]
>
> The rest is musing about co-routines which are another 60 years old, or so.
>
> Yes, I would welcome co-routines as a special form of Ada task, but of
> course without explicit yielding. Obligatory explicit yielding kills
> task abstraction.
> --
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

As far as I know, there is no need for the explicit yielding. The compiler inserts these actions automatically (section 2.3.1, and section 4 for more details).
Guys at ETHZ do things in a bit different way :).

Regards,
Darek

P.S. For curious minds, the (Active) Oberon language report can be found here:
http://cas.inf.ethz.ch/projects/a2/repository/raw/trunk/LanguageReport/OberonLanguageReport.pdf

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<08edcglr8r26t67g1lcfig3pk1ls9n1eei@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5410&group=comp.lang.ada#5410

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 13 Jun 2021 21:09:34 -0500
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.ada
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
Date: Sun, 13 Jun 2021 22:09:33 -0400
Organization: IISS Elusive Unicorn
Message-ID: <08edcglr8r26t67g1lcfig3pk1ls9n1eei@4ax.com>
References: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com> <sa2bpc$it8$1@gioia.aioe.org> <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com> <sa2lhe$ig3$1@gioia.aioe.org> <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com> <sa482l$ocp$1@franka.jacob-sparre.dk> <26182d75-4a84-47d2-b151-bbcb01964fabn@googlegroups.com> <sa50fc$db5$1@dont-email.me> <14166772-2507-4953-8843-57fe35b0f6fbn@googlegroups.com>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 23
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-MtLYEV80c12SolYq+EJnhhK7x+qU8L4WUPdX1RQqef0g7iAym1nb8b0nNgC4b8/xrjgkPwXQIMNfBhk!Mpby+9kZbVAhXKY+NwGypTvH8k5Zf3r8mjtlaZsTZugTsaqvZlC0WjHaLtNfiUol/wHqDs5W
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2847
X-Received-Bytes: 3026
 by: Dennis Lee Bieber - Mon, 14 Jun 2021 02:09 UTC

On Sun, 13 Jun 2021 09:43:59 -0700 (PDT), Dan Winslow
<dandwinslow@gmail.com> declaimed the following:

>Yep, just found that myself. So, I guess since the tasks get mapped onto underlying os threads, windows has its own ideas and does things like automatic priority promotion and other non-compliant stuff. Too bad, but I guess kind of makes sense because windows does everything possible, most likely, to prevent any kind of thread monopolization. Would be nice if the gnat windows version at least threw a warning that 'hey, it's legal, but it aint gonna work on windows'.
>
Priority promotion is a concept inherited from DEC (open)VMS, where
normal user processes had a base priority (which they never dropped below),
but would get priority boosts if it wasn't scheduled over some number of
quantums. And similarly, the top half or so of the priority range was
considered "realtime" and fixed (no priority boosting).

Setting your program to one of Windows "realtime" levels (16-31), might
have some effect on how the program behaves since I believe those too are
fixed priority.

Supposedly NTFS also inherited some VMS concepts -- but if so, M$
managed to obscure them from regular users.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<bc966c4f-7663-4e54-8061-115664a51c30n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5415&group=comp.lang.ada#5415

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:1f7:: with SMTP id x23mr19403038qkn.160.1623717670219;
Mon, 14 Jun 2021 17:41:10 -0700 (PDT)
X-Received: by 2002:a5b:58e:: with SMTP id l14mr29573954ybp.303.1623717670043;
Mon, 14 Jun 2021 17:41:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Mon, 14 Jun 2021 17:41:09 -0700 (PDT)
In-Reply-To: <sa5g58$lt4$1@dont-email.me>
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: <c6169572-25bc-4db7-a50d-c6c8575069a4n@googlegroups.com>
<sa2bpc$it8$1@gioia.aioe.org> <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com>
<sa2lhe$ig3$1@gioia.aioe.org> <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com>
<sa482l$ocp$1@franka.jacob-sparre.dk> <26182d75-4a84-47d2-b151-bbcb01964fabn@googlegroups.com>
<sa50fc$db5$1@dont-email.me> <14166772-2507-4953-8843-57fe35b0f6fbn@googlegroups.com>
<5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com> <sa5g58$lt4$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc966c4f-7663-4e54-8061-115664a51c30n@googlegroups.com>
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
From: dandwins...@gmail.com (Dan Winslow)
Injection-Date: Tue, 15 Jun 2021 00:41:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Dan Winslow - Tue, 15 Jun 2021 00:41 UTC

On Sunday, June 13, 2021 at 12:44:10 PM UTC-5, Jeffrey R. Carter wrote:
> On 6/13/21 6:46 PM, Dan Winslow wrote:
> >
> > Odd that it doesn't require the gnat.adc pragma though. I suppose linux is counting on delay statements or other sync points to swap. For what I need, that's perfect.
> I'm surprised the tasks don't swap when one does I/O.
> --
> Jeff Carter
> "Don't knock masturbation. It's sex with someone I love."
> Annie Hall
> 45

I thought about that too. Blocked IO in this case is unlikely, but a thread put to sleep waiting on IO completion I can certainly see being swapped. Still, if Annex D is strictly respected it shouldn't...I'm starting to wonder what OS actually does fully implement Annex D.

Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD

<29gicg9k44ltuu2sluq15uo75n20quu4v9@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5417&group=comp.lang.ada#5417

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 15 Jun 2021 19:10:39 -0500
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.ada
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
Date: Tue, 15 Jun 2021 20:10:38 -0400
Organization: IISS Elusive Unicorn
Message-ID: <29gicg9k44ltuu2sluq15uo75n20quu4v9@4ax.com>
References: <aa8d1e4f-494e-4d8a-8c44-edfdb7f3ec04n@googlegroups.com> <sa2lhe$ig3$1@gioia.aioe.org> <1d798609-8b73-4bc6-b74f-e435e8af8fedn@googlegroups.com> <sa482l$ocp$1@franka.jacob-sparre.dk> <26182d75-4a84-47d2-b151-bbcb01964fabn@googlegroups.com> <sa50fc$db5$1@dont-email.me> <14166772-2507-4953-8843-57fe35b0f6fbn@googlegroups.com> <5470ede9-7036-4af7-8087-6dc8ff8f9ca0n@googlegroups.com> <sa5g58$lt4$1@dont-email.me> <bc966c4f-7663-4e54-8061-115664a51c30n@googlegroups.com>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Q3kHt6zBvWDqkwRR6i+ETL9+UudzbshkpIDpgyR2j5f72HzH1/CeuqpTOLVgTWLiU9/4cuw8VrKrGg6!g0hfwLyWMrHY3mNtRHwfO0kx7OnNX+jdv/uexjpwy790wXZGQn9Skl5NHpLm3n9wd4fuovri
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2214
 by: Dennis Lee Bieber - Wed, 16 Jun 2021 00:10 UTC

On Mon, 14 Jun 2021 17:41:09 -0700 (PDT), Dan Winslow
<dandwinslow@gmail.com> declaimed the following:

>
>I thought about that too. Blocked IO in this case is unlikely, but a thread put to sleep waiting on IO completion I can certainly see being swapped. Still, if Annex D is strictly respected it shouldn't...I'm starting to wonder what OS actually does fully implement Annex D.

Probably custom BARE-BONES Ada RunTime libraries... Basically, no OS,
and the library has to implement all process switching internally.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor