comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Pointers explained?
Date: Tue, 31 Jul 2007 20:06:46 +0200
Date: 2007-07-31T20:06:46+02:00	[thread overview]
Message-ID: <4cslgd5ejxgp.rsknykje4paa$.dlg@40tude.net> (raw)
In-Reply-To: m2vec0h4kl.fsf@mac.com

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



  reply	other threads:[~2007-07-31 18:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 17:53 Pointers explained? shaunpatterson
2007-07-30 17:56 ` shaunpatterson
2007-07-30 19:04   ` Ed Falis
2007-07-30 19:05   ` Ludovic Brenta
2007-07-30 19:36   ` Adam Beneschan
2007-07-30 21:23     ` Maciej Sobczak
2007-07-30 22:36       ` Adam Beneschan
2007-07-31  7:33         ` Dmitry A. Kazakov
2007-07-31  1:15       ` Anh Vo
2007-07-30 22:20     ` Adam Beneschan
2007-07-30 21:31   ` Jeffrey R. Carter
2007-07-31 17:21   ` Simon Wright
2007-07-31 18:06     ` Dmitry A. Kazakov [this message]
2007-07-31 22:38       ` shaunpatterson
2007-08-01  7:53         ` Martin Krischik
2007-08-01  8:21         ` Dmitry A. Kazakov
2007-08-10 19:52         ` Simon Wright
2007-07-30 20:11 ` Dmitry A. Kazakov
2007-07-31  8:28 ` Martin Krischik
  -- strict thread matches above, loose matches on Subject: below --
2007-07-30 17:53 shaunpatterson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox