comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Multiple entry tasks
Date: Mon, 23 Apr 2001 13:50:14 GMT
Date: 2001-04-23T13:50:14+00:00	[thread overview]
Message-ID: <qqWE6.1851$QV4.143208@www.newsranger.com> (raw)
In-Reply-To: 9c0jot$cah$1@s1.read.news.oleane.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]

In article <9c0jot$cah$1@s1.read.news.oleane.net>, Jean-Pierre Rosen says...
>
>
>"Ted Dennison" <dennison@telepath.com> a �crit dans le message news:
>jL%D6.4582> I'd argue that ensuring finite blocking for clients is the
>> *server's* responsibility. If the client is making an entry call, then 
..
>Interesting. I'd rather argue that in a client-server relationship, none of
>the partners should trust the other one; each ensures its own security. It

If we were talking TCP/IP (or perhaps annex E), I'd probably agree with you. But
within the confines of a single program, I have to be able to count on my
servers working properly, just like I have to be able to count on my normal
subprograms working properly.

>>In this context tenative/timed entry calls are one way to allow a
>> server task to *also* be a client, without neglecting its own client(s).
>That's one use of timed entry calls. I've met other ones...

If we expand the concept of a "server" to include serving things other than Ada
tasks (eg: a display, a request queue, a device), I think this would cover just
about every use I can think of for timed entry calls.

>There once was a famous, though unpublished paper by P. Kruchten about the
>"Sex of tasks", that neatly discussed "male" tasks (callers only), "female"
>tasks (accepters only), "hermaphrodites tasks", one special case of it being
>the "gender bender", etc. I don't think I have it anymore, nor that Philippe
>is still listening c.l.a...

That's a shame. I'd be interested in what he had to say on the subject of
"hermaphrodite tasks". I think there's a few sets of situations where they can
be safe to use, if only one knows how to recognise the situation (and takes
pains to keep the conditions the same, even through later redesigns). But nearly
every time I've created one, I've regretted it.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      reply	other threads:[~2001-04-23 13:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18 14:57 Multiple entry tasks Lutz Donnerhacke
2001-04-18 16:22 ` Marin David Condic
2001-04-18 18:12   ` Ted Dennison
2001-04-18 18:57     ` Ted Dennison
2001-04-18 20:16       ` Marin David Condic
2001-04-19 14:02         ` Ted Dennison
2001-04-19 14:28           ` Marin David Condic
2001-04-18 19:46     ` Marin David Condic
2001-04-19 21:52       ` Robert A Duff
2001-04-24  9:19         ` Lutz Donnerhacke
2001-04-19  8:17   ` Jean-Pierre Rosen
2001-04-19 14:42     ` Ted Dennison
2001-04-19 15:01       ` Marin David Condic
2001-04-19 15:02       ` Jean-Pierre Rosen
2001-04-19 19:12         ` Ted Dennison
2001-04-20 14:17           ` Jean-Pierre Rosen
2001-04-20 19:04             ` Ted Dennison
2001-04-23  6:55               ` Jean-Pierre Rosen
2001-04-23 13:50                 ` Ted Dennison [this message]
replies disabled

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