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.182.130.133 with SMTP id oe5mr22361859obb.37.1418592547668; Sun, 14 Dec 2014 13:29:07 -0800 (PST) X-Received: by 10.140.95.182 with SMTP id i51mr1634qge.12.1418592547637; Sun, 14 Dec 2014 13:29:07 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h15no9948666igd.0!news-out.google.com!r1ni52qat.1!nntp.google.com!s7no7122678qap.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 14 Dec 2014 13:29:07 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.91.37.131; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 87.91.37.131 References: <455d0987-734a-4505-bb39-37bfd1a2cc6b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <529f18b8-0612-4236-8aac-efd641f677cd@googlegroups.com> Subject: =?ISO-8859-1?Q?Re=3A_GNAT=A0and_Tasklets?= From: vincent.diemunsch@gmail.com Injection-Date: Sun, 14 Dec 2014 21:29:07 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:23989 Date: 2014-12-14T13:29:07-08:00 List-Id: Le dimanche 14 d=E9cembre 2014 01:18:42 UTC+1, Hubert a =E9crit=A0: > the result of my research was that depending=20 > on the OS the Ada program was running on you could get several 100 OS=20 > threads or maybe 1-2K on Linux but there is an upper limit because every= =20 > OS thread that runs a task will have a stack associated with it, so=20 > mostly the available memory is the limit, I think. > [...] > My solution was to implement my own pre-emptive Job system on top of the= =20 > OS threads. I allocate as many threads (or Tasks in Ada) as there are=20 > processor cores and then assign a number of Jobs to each. > [...] > Depending on what your requirements are (great number of parallel Jobs),= =20 > this may very well be your only reliable solution. >=20 Yes, I think you are completely right. Is your library private or do you pl= an to release it as Open Source ? This shows clearly that the compiler wasn't able to produce an adequate sol= ution, even=20 if the case of a lot of little local tasks is quite simple, and has become = a standard way of using multicore computers (see for instance Grand Central Dispatch on Mac O= S X).=20 I really hope that Ada 202X will limit new features to a few real improveme= nts, and try hard improving compilers. Kind regards, Vincent