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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.57.83.153.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Benchmarks Game: Thread ring (Was: Large number of tasks slows down my program (using debian) - any fix?) Date: Fri, 06 Apr 2018 07:58:58 +0200 Organization: JSA Research & Innovation Message-ID: <87po3cvpst.fsf_-_@jacob-sparre.dk> References: <1aa8f536-250d-4bef-9392-4d936f916e5f@googlegroups.com> <9377f941-31d0-4260-818a-8e189aac8c19@googlegroups.com> <10e74e0c-119a-4d86-8a12-c05101f744f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="109.57.83.153.mobile.3.dk:109.57.83.153"; logging-data="19268"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:I63PU6Mh8fWKnzsmMta2G+WMSRs= Xref: reader02.eternal-september.org comp.lang.ada:51349 Date: 2018-04-06T07:58:58+02:00 List-Id: Brad Moore writes: > [...] I believe the reason why it works as fast as it did, is that an > Ada protected object can have one task perform the action of the > protected object on behalf of other tasks that are queued on an entry > of the protected object. > The results comparing this version against other approaches in other > languages can be seen here, where the entries are executed on a > quad-core machine: > https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/threadring.html >From the CPU load data, it looks like the Ada solution has four tasks running full time, and not just a single one. Greetings, Jacob -- "The point is that I am now a perfectly safe penguin!"