comp.lang.ada
 help / color / mirror / Atom feed
From: John Harbaugh <johnh@bunsen.ds.boeing.com>
Subject: Re: Tasks in Gnat3.05 for Dos?
Date: 1996/07/22
Date: 1996-07-22T00:00:00+00:00	[thread overview]
Message-ID: <31F3E4E7.13E4@bunsen.ds.boeing.com> (raw)
In-Reply-To: 4su2km$dt4@masala.cc.uh.edu


Spasmo wrote:
> 
> Robert Dewar (dewar@cs.nyu.edu) wrote:
> : "Yep found that out (how I missed it I'll never know).  Now it
> : compiles and runs, but the tasks don't run concurrently :("
> 
> : Of course they don't run concurrently, you are on a single processor
> : machine. Furthermore, in accordance with the required semantics of
> : the real time annex, the scheduling is run-till-blocked. If you
> : are thinking that I/O should be overlapped -- you won't get this
> : in DOS, DOS does not take kindly to multi-threading.
> 
> : What exactly are you expecting that you do not see?
> 
> Timeslicing.  IN any case that's not to be as many folks have told
> me, and now that I've started working on some tasking code, I find
> that it's actually a good thing since it's better that I implement
> my own atomic slicing based on units of work via different entries.
> 
> --
> Spasmo
> "Here's a present just for you
> When you open it, you'll be through"
>         "Letter Bomb" by the Circle Jerks

In their excellent book "Concurrency In Ada" Burns and Welling make a useful 
distinction between parallelism and concurrency:

"Two processes are said to be executing in parallel if at any instant they 
are both executing...  By comparison, two processes are said to be concurrent 
if they have the potential for executing in parallel."

The important principal is concurrancy.  A concurrent program will run 
correctly on one or many processors, or even a distributed heterogeneous 
network.  Performance depends on the actual hardware, of course.  Timeslicing 
is really just a way of simulating multiple processors.  A correct concurrent 
program will make no assumptions about the number of processors available.

	- John Harbaugh
	The Boeing Company
"Message disclaimers are not legally binding"




  parent reply	other threads:[~1996-07-22  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-16  0:00 Tasks in Gnat3.05 for Dos? Spasmo
1996-07-16  0:00 ` John S. Harbaugh
1996-07-17  0:00   ` Spasmo
1996-07-17  0:00     ` Robert Dewar
1996-07-21  0:00       ` Spasmo
1996-07-21  0:00         ` Michael Feldman
1996-07-22  0:00         ` John Harbaugh [this message]
1996-07-23  0:00           ` Robert A Duff
1996-07-24  0:00             ` John Harbaugh
1996-07-23  0:00       ` Jon S Anthony
replies disabled

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