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,e81fd3a32a1cacd2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Does Ada tasking profit from multi-core cpus? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1173207061 12.201.97.213 (Tue, 06 Mar 2007 18:51:01 GMT) NNTP-Posting-Date: Tue, 06 Mar 2007 18:51:01 GMT Organization: AT&T ASP.att.net Date: Tue, 06 Mar 2007 18:51:01 GMT Xref: g2news2.google.com comp.lang.ada:9729 Date: 2007-03-06T18:51:01+00:00 List-Id: tmoran@acm.org wrote: > > A quick test with a single protected object containing a single, > long-duration, function appears to have just one call of the function > active at a time, even if the function is called from two different tasks. The last time I looked at the GNAT sources for protected objects, each had a mutex associated with it that was obtained before any action, even functions. I guess that hasn't changed. Other compilers may be different. -- Jeff Carter "When danger reared its ugly head, he bravely turned his tail and fled." Monty Python and the Holy Grail 60