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!news2.google.com!news1.google.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: Wed, 02 Apr 2008 02:22:55 -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: 02 Apr 2008 09:22:54 +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-Zh7sO4VRKd84RcFd3iKAYCiyQSuNYmdFr72fZK0C+ifdj4d051YyhivyDZ95XrgCyG29q7h1fvKO5rF!sjZnZVI6vjvkhsSUYO+mIhkj6S/gt5aVCPaf0of8P0YEpey13TyoRNzNpNrO9H+DGhWgKa0hOUmY 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:20751 Date: 2008-04-02T09:22:54+02:00 List-Id: >>>>> "(b" == (see below) writes: (b> Also, simply declaring a variable atomic does not in itself (b> ensure global consistency of view. For that you also need (b> to execute appropriate memory barrier operations for the (b> architecture. (I'm sure you know that.) Yes, I know. So pragma atomic does not help very much by itself in implementing lock-free algorithms. >> 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> Yes, but this is completely implementation-dependent. (b> Not much above the semantic level of assembly. (b> I would take a lot of convincing that the performance (b> improvement was actually necessary. I agree that it rarely should be necessary. It would have been nice to have a way of implementing lock-free algorithms in Ada efficiently, but entryless protected objects seems to be the best solution if you want a portable program. (b> -- (b> Bill Findlay (b> chez blueyonder.co.uk -- C++: The power, elegance and simplicity of a hand grenade.