comp.lang.ada
 help / color / mirror / Atom feed
From: macrakis@marat.osf.fr (Stavros Macrakis)
Subject: Re: Teaching Concurrency
Date: 15 Jan 90 11:10:33 GMT	[thread overview]
Message-ID: <91@mururoa.imag.fr> (raw)
In-Reply-To: 10330@june.cs.washington.edu


In article <650@ajpo.sei.cmu.edu>, griest@ajpo.sei.cmu.edu (Tom Griest) writes:
> The important thing to consider is that tasks should be used
> for operations which are really likely to be physically concurrent.

I strongly disagree.  Tasking is a structuring mechanism as much as it
is a concurrency mechanism.  There are applications of tasks where
concurrency is a happy accident.  The standard name for this is "coroutines".

Applications for coroutines include simulation and data structure
transformation (cf. in particular the Jackson method).  Modules in producer-
consumer relations (cf. Unix pipes) are a good candidate -- of course
in this case there is often the possibility of concurrency.

For many years, assembly language programmers were the only ones to
benefit from coroutine structures because no mainstream programming
languages supported them.  Ada's support for coroutines is an important
step forward.

Of course, in order to benefit fully from this structuring mechanism, the
implementation should be efficient.  As far as I know, there are no Ada
compilers today where coroutine call is comparable to subroutine call in
its cost (as it can be in principle).

	-s

  parent reply	other threads:[~1990-01-15 11:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-01-07  2:26 Teaching Concurrency Bill Wolfe
1990-01-09 16:41 ` Marc Benveniste,lsp
1990-01-10 20:49 ` Mark Shepherd
1990-01-10 22:47   ` Richard Pattis
1990-01-11 13:04     ` Robert Firth
1990-01-11 19:27       ` Vincent Manis
1990-01-13  7:34         ` Peter G Ludemann
1990-01-12 19:02       ` Peter da Silva
1990-01-15 13:30         ` Robert Firth
1990-01-17 15:40         ` Kurt Luoto
1990-01-11 16:09     ` Michael Meissner
1990-01-14 12:33       ` Re^2: " Kim Shearer
1990-01-11 18:50     ` Tom Griest
1990-01-11 20:38     ` Brian L. Stuart
1990-01-12  0:47     ` Robert Steigerwald x2468
1990-01-15 11:10     ` Stavros Macrakis [this message]
1990-01-11 14:52   ` David Lamb
1990-01-13  0:06     ` Mark Shepherd
1990-01-11 16:13   ` S. Crispin Cowan
1990-01-12 13:12     ` Mike Harrison
1990-01-11 19:20   ` Vincent Manis
replies disabled

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