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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,292c095d622af1d0,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.136.33 with SMTP id px1mr7185521pbb.7.1336289915658; Sun, 06 May 2012 00:38:35 -0700 (PDT) Path: pr3ni9802pbb.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: basic question on Ada tasks and running on different cores Date: Sun, 06 May 2012 02:38:33 -0500 Organization: Aioe.org NNTP Server Message-ID: Reply-To: nma@12000.org NNTP-Posting-Host: JFgm6aMVwmC/YQNQyUTYRQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-05-06T02:38:33-05:00 List-Id: 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? 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? Will the programmer have to do anything other than just creating the tasks (and ofcourse protect any critical section as needed), but not worry about the mapping of tasks to cores and all the other scheduling issues. Sorry for such a basic question, but I have not looked at this for long time. thanks, --Nasser