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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8e11100f675ea2df X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.91.114 with SMTP id cd18mr12938859wib.2.1357219044472; Thu, 03 Jan 2013 05:17:24 -0800 (PST) Path: i11ni349549wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: asynchronous task communication Date: Thu, 3 Jan 2013 14:17:06 +0100 Organization: cbb software GmbH Message-ID: <1cfkfuxdm6x31$.mbobxls51kru$.dlg@40tude.net> References: <1c2dnd5E6PMDR33NnZ2dnUVZ_sednZ2d@earthlink.com> <50e18094$0$6583$9b4e6d93@newsspool3.arcor-online.net> <7NednS4s2oukfXzNnZ2dnUVZ_oadnZ2d@earthlink.com> <7cudnYloBfQDw3_NnZ2dnUVZ_rKdnZ2d@earthlink.com> <50e5755c$0$9517$9b4e6d93@newsspool1.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cDN0fd8KlIeJLyErIrSf0A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-01-03T14:17:06+01:00 List-Id: On Thu, 03 Jan 2013 13:11:21 +0100, Georg Bauhaus wrote: > However, I guess you could use > CAS based access to the letter boxes, in particular if the number > of messages is fixed. If there is strictly one producer, which is normally the case for such structures, you do not need anything but simple atomic (RM C.6(3)) read and update in order to implement an lock-free queue or blackboard. No intrinsic CAS. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de