From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Musings on RxAda
Date: Wed, 21 Oct 2015 18:47:35 +0200
Date: 2015-10-21T18:47:35+02:00 [thread overview]
Message-ID: <18xpt5oxiz5nw$.klh515586pjp.dlg@40tude.net> (raw)
In-Reply-To: f729172a-a3e2-48ba-9e88-72dc34727a88@googlegroups.com
On Wed, 21 Oct 2015 09:18:12 -0700 (PDT), Hadrien Grasland wrote:
> I do believe, however, that a task which blocks or performs CPU work after
> the rendezvous is acceptable,
But it is still blocking. For a publisher/subscriber service no mediator
task is needed. Such a task would not solve any of the problems of such
service anyway.
> and could be used to achieve some
> parallelism in the context of a true data pipeline (i.e. more than 1
> input).
Pipeline is just a method of buffered exchange. As such it is blocking
(publisher) when the subscriber is unable to process all published data.
Moreover it is unsuitable for 1-n communications. If you are OK with
blocking the publisher, then no buffering is ever needed. Buffering
(marshaling) is required by non-blocking but not ensures it.
And no mediator task is needed anyway, not even a protected object. 1-1
FIFO requires none of Ada's synchronization primitives.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2015-10-21 16:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 14:30 Musings on RxAda Alejandro R. Mosteo
2015-10-15 14:40 ` brbarkstrom
2015-10-21 11:45 ` Hadrien Grasland
2015-10-21 12:12 ` Hadrien Grasland
2015-10-21 13:35 ` Dmitry A. Kazakov
2015-10-21 16:18 ` Hadrien Grasland
2015-10-21 16:47 ` Dmitry A. Kazakov [this message]
2015-10-21 19:09 ` Hadrien Grasland
2015-10-21 19:35 ` Dmitry A. Kazakov
2015-10-21 21:04 ` Hadrien Grasland
2015-10-22 11:02 ` Alejandro R. Mosteo
2015-10-22 12:33 ` Dmitry A. Kazakov
2015-10-22 16:41 ` Alejandro R. Mosteo
2015-11-19 13:14 ` Jacob Sparre Andersen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox