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: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Large number of tasks slows down my program (using debian) - any fix? Date: Sun, 8 Apr 2018 10:25:14 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1aa8f536-250d-4bef-9392-4d936f916e5f@googlegroups.com> <9377f941-31d0-4260-818a-8e189aac8c19@googlegroups.com> <10e74e0c-119a-4d86-8a12-c05101f744f1@googlegroups.com> <0bba20f9-76ba-420e-afef-d1f1d0470382@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 8 Apr 2018 08:25:15 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b764a8b3f425ac46ce0afbee41d2b25d"; logging-data="26808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pWJ2/ZcCLXjsmSO9g50ln5EaR+HlU/Ec=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 In-Reply-To: <0bba20f9-76ba-420e-afef-d1f1d0470382@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:Hpnm8fUVPygFXdc8xleGjwZWO4o= Xref: reader02.eternal-september.org comp.lang.ada:51398 Date: 2018-04-08T10:25:14+02:00 List-Id: On 04/08/2018 02:29 AM, Brad Moore wrote: > > You are probably right, as echoed by Dmitri, its somewhat borderline. > There are other Ada versions farther down the list of Ada programs, I think that are closer to the original intent. The one I quickly wrote, in which tasks do actually pass a counter around, decrementing each time, until a task receives zero, takes about 5 mins. It doesn't have a PO, but does demonstrate a selective accept with terminate alternative. That's an interesting Ada tasking feature that you can't use with a PO: tasks just stop without having to be told they can. -- Jeff Carter "My name is Jim, but most people call me ... Jim." Blazing Saddles 39