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,59c52143b2a1463b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!newsfeed.datemas.de!news.tornevall.net!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How many hardware threads? Date: Sun, 11 Jul 2010 19:31:54 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <4c3a65d7$0$2405$4d3efbfe@news.sover.net> NNTP-Posting-Host: ec869b7444c4627ad8d22da3a63368fa Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: c2db17449601936c737f638d9c3c57a9 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <4c3a65d7$0$2405$4d3efbfe@news.sover.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=c2db17449601936c737f638d9c3c57a9 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news1.google.com comp.lang.ada:12330 Date: 2010-07-11T19:31:54-07:00 List-Id: On 07/11/2010 05:47 PM, Peter C. Chapin wrote: > > I'm about to write a simple program that decomposes into parallel, > compute-bound tasks quite nicely. How many such tasks should I create? I > could ask the user to provide the number as a command line argument or > in a configuration file. Yet it seems like the program should just be > able to figure it out. Does Ada have a standard way of doing that? I > didn't see anything in my (admittedly short) review. No, it doesn't, and I've long thought it should. GNAT has function System.Task_Info.Number_Of_Processors. But something standard would be better. -- Jeff Carter "I feel as though somebody stepped on my tongue with muddy feet." Never Give a Sucker an Even Break 112