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!news.eternal-september.org!news.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.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Real tasking problems with Ada. Date: Mon, 31 Jul 2017 23:45:41 -0500 Organization: JSA Research & Innovation Message-ID: References: <9e51f87c-3b54-4d09-b9ca-e3c6a6e8940a@googlegroups.com> <49d02dda-8f1b-4005-a164-7af34e1993cc@googlegroups.com> Injection-Date: Tue, 1 Aug 2017 04:45:42 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="31078"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: news.eternal-september.org comp.lang.ada:47540 Date: 2017-07-31T23:45:41-05:00 List-Id: "Robert Eachus" wrote in message news:ad30cdd8-c444-481f-9353-c16d91542e06@googlegroups.com... ... >If on a particular implementation, they are exactly the same, then all I > am asking for is some declarative sugar which requires four lines of > source added to Ada.Multitasking. But what I really want is the ability > to start a task on the processor core it will stay on. Ah, you say, I can > set the aspect CPU. Well, not really. Yes, really. Use a discriminant of type CPU, and use that in the aspect. That's an age-old technique, and indeed is the major reason that tasks have discriminants. You then can allocate the tasks (which would be my suggestion), or you could create the entire set in an aggregate (assuming you have Ada 2020). Randy.