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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Large number of tasks slows down my program (using debian) - any fix? Date: Thu, 05 Apr 2018 20:44:12 +0100 Organization: A noiseless patient Spider Message-ID: 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 Injection-Info: reader02.eternal-september.org; posting-host="c777ec803a0c54d44a6cf3b25d1f1906"; logging-data="11266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ILHdqDJ5eVcDsoGamc+GgLEiPGBOsxJQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:7i7wbmPxzEwumPeTjH1j3wbkc/U= sha1:fYDsAQxRU7UZJ+qWo1baEnER8Zs= Xref: reader02.eternal-september.org comp.lang.ada:51344 Date: 2018-04-05T20:44:12+01:00 List-Id: "Jeffrey R. Carter" writes: > On 04/05/2018 04:07 PM, Brad Moore wrote: >> >> The problem there is to create 503 tasks, and then use some sort of >> message passing to pass a "token" in a ring from from task to the >> next, 50_000_000 times, printing out the task number that ended up >> with the token at the end. > > Isn't the answer always 291? In the three I looked at the answer was 292.