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,edda2b296e2577cf 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!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: GNAT's Protected Objects Date: Mon, 08 Nov 2010 20:14:20 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <4af1a5f4-7bf3-47ee-af67-db50e589e7a8@n32g2000pre.googlegroups.com> <6ede403f-7c92-4edc-82c3-1bc85cbc9cb7@b19g2000prj.googlegroups.com> NNTP-Posting-Host: c173da91d66e11cbf6259a76c2f16134 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 779a6ac1d972a8793669b6a407805b3b X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <6ede403f-7c92-4edc-82c3-1bc85cbc9cb7@b19g2000prj.googlegroups.com> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=779a6ac1d972a8793669b6a407805b3b 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:15395 Date: 2010-11-08T20:14:20-07:00 List-Id: On 11/08/2010 06:50 PM, Anh Vo wrote: > > Below are the test results conducted on GNAT 2010 running on Windows > XP. > > Num processors 2 > 1 0.077000009 > 2 0.055627741 > 3 0.023719495 > 4 0.018366580 > 5 0.018512129 Interesting. Perhaps it's something to do with the GNAT version. > As Robert suggested, I would divide work among tasks by passing > paramter into each task. For example, in case of two tasks, one task > handles from rows 1 .. 250 while the other task handle from rows > 251 .. 500. By the way, the protected singleton type Control is no > longer needed. As I said in my initial msg, I did that and got the expected results. It was that this version gave different results that bothered me. Note also that you didn't have to scroll down through irrelevant parts of 3 msgs to read my reply. -- Jeff Carter "Sir Robin the not-quite-so-brave-as-Sir-Lancelot, who had nearly fought the Dragon of Angnor, who nearly stood up to the vicious Chicken of Bristol, and who had personally wet himself at the Battle of Badon Hill." Monty Python & the Holy Grail 68