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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no 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.191.225 with SMTP id hb1mr3017383pbc.5.1336294645653; Sun, 06 May 2012 01:57:25 -0700 (PDT) Path: pr3ni10008pbb.0!nntp.google.com!news2.google.com!postnews.google.com!a5g2000vbn.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: basic question on Ada tasks and running on different cores Date: Sun, 6 May 2012 00:59:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <36f20ff3-bfd3-42c3-a0b8-66bc7fc4b126@a5g2000vbn.googlegroups.com> References: NNTP-Posting-Host: 83.222.143.227 Mime-Version: 1.0 X-Trace: posting.google.com 1336294645 761 127.0.0.1 (6 May 2012 08:57:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 6 May 2012 08:57:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a5g2000vbn.googlegroups.com; posting-host=83.222.143.227; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-05-06T00:59:36-07:00 List-Id: On 6 mai, 09:38, "Nasser M. Abbasi" wrote: > Assume I am using a PC with say 1,000 cores (may be > in few short years). > > 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. Actually the operating system does it for you, automatically. The difficulty is for *not* using as many cores or CPUs as available. _________________________ Gautier's Ada programming http://freecode.com/users/gdemont