comp.lang.ada
 help / color / mirror / Atom feed
From: Ehud Lamm <mslamm@mscc.huji.ac.il>
Subject: Re: tasking in Ada and Annex D question
Date: 1999/02/03
Date: 1999-02-03T00:00:00+00:00	[thread overview]
Message-ID: <Pine.A41.3.96-heb-2.07.990202235826.132212D-100000@pluto.mscc.huji.ac.il> (raw)
In-Reply-To: 36B77471.ACD2DE1A@icon.fi

On Tue, 2 Feb 1999, Niklas Holsti wrote:

> Markus Kuhn wrote:
> > 
> > 
> > What I have a bit of a problem to understand is, for what
> > else apart from preemptive scheduling, concurrency when system
> > calls block, and utilization of multiprocessor systems do I
> > need tasks for (i.e., all the things FSU doesn't do)?
> 
> You need tasks to modularise your program's NON-synchronised
> (i.e. logically concurrent) functions, while programming each
> such function in an easy-to-understand sequential manner.
> 

I ask my students to write a simulation of some grazing animals, predators
and grass, all having different behaviours, and interactions when the meet
(grass is eaten when it meets a hungry cow. Same things happens to the cow
if the lion is hungry :-) etc.)

I urged them to think of coding this sequentially. They usually see the
point. It is harder to coceptualized this using tasks.

Tasks are part of the tools to abstract the control structure.

Ehud Lamm     mslamm@pluto.mscc.huji.ac.il






  reply	other threads:[~1999-02-03  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-31  0:00 tasking in Ada and Annex D question nabbasi
1999-02-01  0:00 ` Dr. Hubert B. Keller
1999-02-02  0:00 ` Markus Kuhn
1999-02-02  0:00   ` robert_dewar
1999-02-02  0:00     ` Markus Kuhn
1999-02-02  0:00       ` Niklas Holsti
1999-02-03  0:00         ` Ehud Lamm [this message]
1999-02-03  0:00       ` robert_dewar
1999-02-02  0:00 ` robert_dewar
1999-02-02  0:00   ` Roger Racine
1999-02-02  0:00     ` robert_dewar
1999-02-03  0:00       ` Nick Roberts
1999-02-03  0:00         ` Roger Racine
1999-02-03  0:00         ` Frank Mueller
1999-02-03  0:00         ` Frank Mueller
1999-02-03  0:00     ` Tom Moran
replies disabled

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