From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Combining entry_call, accept_statment and terminate_statment
Date: Mon, 29 Mar 2004 18:14:42 -0500
Date: 2004-03-29T18:14:42-05:00 [thread overview]
Message-ID: <LfWdnavLFM1-MPXdRVn-uA@comcast.com> (raw)
In-Reply-To: <m3vfkn6y2h.fsf@niflheim.malonet>
Mark Lorenzen wrote:
> "Randy Brukardt" <randy@rrsoftware.com> writes:
>
> [cut]
>
>
>>But I'd say that you probably have a design problem if you have a task that
>>is both calling and accepting at the same time. That's pretty weird (unless
>>the accepts are purely for task control, as above). It's preferable that
>>each task be either a server (accepting entries) or a client (calling
>>entries), but not both. Analysis is complicated if you have both.
>>
>> Randy.
>
>
> To me, this seems to be a severe design limitation. Isn't it normal to
> have a task acting as a filter, i.e. reading data from a PO,
> manipulating the data and the writing the manipulated data to a PO?
> This could f.x. be a task implementing a (de)multiplexer.
>
> - Mark Lorenzen
I was going to say that the special case of a "transformer" that accepts
a call and then immediately makes a call, usually in a loop is an
exception to this rule. But you beat me to it.
If you create a call graph for tasks and protected objects each node
should either make calls or be the target of calls, with this one
exception where the net number of calls is always negative. If you want
to think of these special cases as arcs instead of nodes, that works too.
Oh, and there is a different exception which is seldom used. You may
requeue a call to you as a call to a different entry (common) or to an
entry of another task. I have no idea of how to represent or analyze
that last case.
--
Robert I. Eachus
"The terrorist enemy holds no territory, defends no population, is
unconstrained by rules of warfare, and respects no law of morality. Such
an enemy cannot be deterred, contained, appeased or negotiated with. It
can only be destroyed--and that, ladies and gentlemen, is the business
at hand." -- Dick Cheney
next prev parent reply other threads:[~2004-03-29 23:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 19:41 Combining entry_call, accept_statment and terminate_statment Lutz Donnerhacke
2004-03-29 22:04 ` Randy Brukardt
2004-03-29 23:19 ` Mark Lorenzen
2004-03-29 23:14 ` Robert I. Eachus [this message]
2004-03-30 7:26 ` Lutz Donnerhacke
2004-03-30 20:04 ` Randy Brukardt
2004-03-30 22:47 ` Lutz Donnerhacke
2004-03-31 9:03 ` Dmitry A. Kazakov
2004-03-31 9:14 ` Lutz Donnerhacke
2004-03-31 12:22 ` Dmitry A. Kazakov
2004-03-31 6:39 ` Jean-Pierre Rosen
2004-03-30 7:29 ` Lutz Donnerhacke
2004-03-30 8:11 ` tmoran
2004-03-30 11:45 ` Lutz Donnerhacke
2004-03-30 0:33 ` James Rogers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox