comp.lang.ada
 help / color / mirror / Atom feed
From: firth@sei.cmu.edu (Robert Firth)
Subject: Re: Teaching Concurrency
Date: 15 Jan 90 13:30:26 GMT	[thread overview]
Message-ID: <5639@bd.sei.cmu.edu> (raw)
In-Reply-To: =K01QVDxds13@ficc.uu.net

In article <=K01QVDxds13@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes:
>I believe that the following two problems are inappropriate, because
>they are subject to race conditions related to task startup time,
>quantum sizes, and so on:
>
>> (3) veryslowsort.
>> (6) quantum mouse.

Thanks, Peter; my note omitted a couple of key points.  Please
let me clarify

(a) the exercises were intended to teach concurrency on ONE
    processor, as a preparatory to building a small local
    operating system.  (multiprocessor concurrency, and
    concurrency models transparent to number of processors,
    were covered elsewhere)

(b) the underlying model had, and relied upon, a scheduler
     whose operation was defined precisely.  the examples
    in part illustrated this.  however, the students were
    emphatically taught that, in real life, one does NOT
    rely on priority to effect ordering of task execution.

For example, the commentary explaining 'veryslowsort' pointed
out that

(1) the process reading input and creating tasks had the highest
    priority, so all the input would be read before any of the
    printing tasks ran

(2) the scheduler used strict priorities, so indeed the printing
    tasks would be run in the right order to print a sorted list

I didn't think it necessary to add that this was a pretty silly
way to sort numbers - the name alone seemed hint enough.  The
fact that the program in execution exhibits no concurrency at all
is one the students were able to deduce for themselves.

  reply	other threads:[~1990-01-15 13:30 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 [this message]
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
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