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!news3.google.com!news.germany.com!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Robert Dewar's great article about the Strengths of Ada over other langauges in multiprocessing! Date: Wed, 26 Mar 2008 22:27:29 +0100 Message-ID: <87bq516uri.fsf@mid.deneb.enyo.de> References: <13t4b2kkjem20f3@corp.supernews.com> <89af8399-94fb-42b3-909d-edf3c98d32e5@n75g2000hsh.googlegroups.com> <87bq56peg1.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: idssi.enyo.de 1206566850 6422 212.9.189.177 (26 Mar 2008 21:27:30 GMT) X-Complaints-To: Cancel-Lock: sha1:Is+cQ0nnyZawkHrInqxc+qZEWto= Xref: g2news1.google.com comp.lang.ada:20592 Date: 2008-03-26T22:27:29+01:00 List-Id: * Ole-Hjalmar Kristensen: > If the compiler is smart enough to optimize this case, an entryless > protected object would be a good building block. > > The AARM states that "Entryless protected objects are intended to be > treated roughly like atomic objects -- each operation is indivisible > with respect to other operations (unless both are reads), but such > operations cannot be used to synchronize access to other nonvolatile > shared variables" You need some signaling for a shared hash table, otherwise reading a freshly-added object from a different thread might not give you the data you want (strictly speaking, even just comparing the might cause issues).