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,308a261188818cce X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Pointers explained? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1185817996.143086.317990@g12g2000prg.googlegroups.com> <1185818189.689914.159900@x40g2000prg.googlegroups.com> Date: Tue, 31 Jul 2007 20:06:46 +0200 Message-ID: <4cslgd5ejxgp.rsknykje4paa$.dlg@40tude.net> NNTP-Posting-Date: 31 Jul 2007 20:06:46 CEST NNTP-Posting-Host: 95f2c534.newsspool4.arcor-online.net X-Trace: DXC=?SOHI^`2IVVI?44J>Z[:RQ4IUK On Tue, 31 Jul 2007 18:21:30 +0100, Simon Wright wrote: > I don't believe you can have a queue of messages like this without > 'new'. If you just want to handle the messages in the context where > they're created, you may be able to swing it. Not necessary. There exist important cases: 1. When messages handling is synchronous, i.e. when the publisher waits for message processing completion, then no heap is needed. It is just Ada's rendezvous model. 2. When the number of messages of same type is limited. That is when you want to ensure QoS. Then you would probably block at emission point until a pending message of same type is underway or else coalesce when processing is not yet started. Otherwise you could quickly chock the system. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de