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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,292c095d622af1d0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.40 with SMTP id qr8mr10631383pbc.0.1336313596656; Sun, 06 May 2012 07:13:16 -0700 (PDT) Path: pr3ni10849pbb.0!nntp.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: basic question on Ada tasks and running on different cores Date: Sun, 06 May 2012 10:13:15 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1336313596 13883 192.74.137.71 (6 May 2012 14:13:16 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 6 May 2012 14:13:16 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:NmyyPZzl9TGy/3Vw2xrTV638VWU= Content-Type: text/plain; charset=us-ascii Date: 2012-05-06T10:13:15-04:00 List-Id: "Nasser M. Abbasi" writes: > If I use Ada, and create many, many tasks, will these > tasks automatically be scheduled to run on as many > different cores as possible so to spread the load and > achieve the most parallelism possible? Yes. Unless you have particular requirements, you don't have to do anything special. > Is this something that is controlled by Ada run-time > automatically, or is it the OS that that is in charge here > with which task (i.e. thread) runs on which core? The way GNAT works, it's the OS. But it doesn't have to be that way. - Bob