comp.lang.ada
 help / color / mirror / Atom feed
From: robert_dewar@my-dejanews.com
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: <798ec8$dct$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 797m6h$73g$2@pegasus.csx.cam.ac.uk

In article <797m6h$73g$2@pegasus.csx.cam.ac.uk>,
  mgk25@cl.cam.ac.uk (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)?

My goodness! A surprising question. Multi-threading is
a very fundamental programming paradigm for all sorts of
situations. Endless examples are at hand, but here's just
one, a radar tracking program where each trace is a
separate task. Such applications may not even do any
system calls! There are lots of large scale applications
using Ada tasks which don't care two hoots about system
calls. Note as an example that many of the Ada 83 compilers
in which tasking was used heavily did their own scheduling
within a single process in Unix (or DOS!)

The mapping of tasks into OS threads is a relatively new
development. It is useful for certain kinds of system
programming, but there is a very high efficiency penalty
to be paid for this approach, a penalty which many (most?)
applications do not need to pay.

P.S. of course FSU threads provides preemptive scheduling,
this is required by the RM semantics!

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent 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
1999-02-03  0:00       ` robert_dewar [this message]
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