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: a07f3367d7,8e11100f675ea2df X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.86.130 with SMTP id p2mr7489380paz.22.1357498036049; Sun, 06 Jan 2013 10:47:16 -0800 (PST) MIME-Version: 1.0 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: asynchronous task communication Date: Tue, 1 Jan 2013 04:48:20 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: Tr4YF43EK2s0RuphVpEIMQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Path: 6ni88784pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.mccarragher.com!news.grnet.gr!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!aioe.org!.POSTED!not-for-mail Date: 2013-01-01T04:48:20+00:00 List-Id: > OTOH, I think I've found a solution: > For each cell, implement it as a record of two protected objects. One > of which is the cell, as previously conceived, and the other of which is > a mailbox. The mailbox would never block for long. I am worried a bit > about the increase in RAM requirements, but perhaps that can't be > avoided. At least it allows nearly non-blocking communication. So this is like an apartment building with each tenant being a cell, and a wall of mailboxes in the lobby? With blocking only occurring when somebody wants to deposit mail in a box where the tenant is in the process of extracting his mail. As opposed to having a concierge who may be busy with Smith when Jones wants something.