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,e0e1d3b3f7c994b8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sun.com!news.sun.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 01 Apr 2008 04:02:41 -0500 Newsgroups: comp.lang.ada Subject: Re: Robert Dewar's great article about the Strengths of Ada over other langauges in multiprocessing! References: <13t4b2kkjem20f3@corp.supernews.com> <89af8399-94fb-42b3-909d-edf3c98d32e5@n75g2000hsh.googlegroups.com> <87bq56peg1.fsf@mid.deneb.enyo.de> <87bq516uri.fsf@mid.deneb.enyo.de> <87prtfzrtl.fsf@mid.deneb.enyo.de> <87wsnmg1ju.fsf@mid.deneb.enyo.de> From: Ole-Hjalmar Kristensen Organization: Sun Microsystems Date: 01 Apr 2008 11:02:39 +0200 Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cache-Post-Path: news1nwk!unknown@astra06.norway.sun.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 192.18.43.225 X-Trace: sv3-n8VCXtm/2+EOzUommu8Z9gPX+NkJpzWj35v02zIhdZz5r9GA8iA92A/n45fcrhj0n73lS6evDRmmqXL!QH6FDint4tf7JzUs5nezPDmcX6ovArPemkmiJgozM2+ZoL6rgtIkMc9xrDvTjGWGYokDJ8HcreoN X-Complaints-To: abuse@sun.com X-DMCA-Complaints-To: abuse@sun.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.38 Xref: g2news1.google.com comp.lang.ada:20707 Date: 2008-04-01T11:02:39+02:00 List-Id: >>>>> "(b" == (see below) writes: (b> I think the wording is trying to cover all the bases. (b> One clue is the phrase "_full_ cache consistency". (b> The caches certainly need to be consistent with respect to the (b> protected data, even for protected functions and procedures, (b> but only entries ensure global consistency and so provide (b> synchronization of data that is not local to the protected object. Yes, that seems reasonable. >> Btw., I ran a simple test on a SPRAC multiprocessor with an entryless >> protected object containing a single integer versus an integer >> declared with pragma atomic, and as expected the pragma atomic >> solution was much (40x) faster. (b> Unfortunately, we can't usefully apply that pragma even (b> to a pair of integers. (I don't mean the pair's components!) Agreed, but you may able to cheat and pack a pair of integers into a 64-bit atomic, and a compare-and-swap is also much cheaper than a protected object it seems. (b> -- (b> Bill Findlay (b> chez blueyonder.co.uk -- C++: The power, elegance and simplicity of a hand grenade.