comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Tasking performance between Ada83 and Ada95
Date: 1997/06/17
Date: 1997-06-17T00:00:00+00:00	[thread overview]
Message-ID: <dewar.866578514@merv> (raw)
In-Reply-To: EBw4wG.Gtw@world.std.com


<<Are you saying it's impossible to write an Ada run-time system that does
parallelism without using operating system threads (on a Unix-like OS)?
That's not true -- I've done it.  I wrote an Ada 83 RTS that ran on a
parallel shared-memory machine where the OS had no threads support.  So
we created one Unix process per CPU (you need a way to know how many
CPUs there are).  Almost all memory in all the processes was mapped to
the same place.  And then the task scheduler decided which task to run
in which process according to the usual priority rules.  Of course,
non-blocking I/O required writing Text_IO (etc) in terms of system calls
that don't block, but interrupt when the I/O is done.>>

No one said that this is impossible. It is of course possible, but it does
not seem to be a particularly useful approach in practice on modern day
operating systems and hardware. Or put it another way, we have not found
even one customer interested in this kind of simulation. All our customers
using multi-processors definitely want Ada to use the underlying operating
systems threads, since this gives them all kinds of capabilities, like
assigning threads to processors, dealing with thread hierarchies, special
kinbds of inter-thread syncrhonization, debugging tools that know about the
threads, performance analyzers that know about the threads etc.






  reply	other threads:[~1997-06-17  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-06  0:00 Tasking performance between Ada83 and Ada95 Mike Rose
1997-06-07  0:00 ` jim hopper
1997-06-07  0:00 ` Robert A Duff
1997-06-08  0:00   ` Robert Dewar
1997-06-10  0:00     ` PascMartin
1997-06-10  0:00       ` Robert Dewar
1997-06-10  0:00     ` Jon S Anthony
1997-06-07  0:00 ` Robert Dewar
1997-06-08  0:00   ` Edmond Walsh
1997-06-09  0:00     ` Robert Dewar
1997-06-15  0:00       ` Edmond Walsh
1997-06-15  0:00         ` Robert Dewar
1997-06-15  0:00           ` Tom Moran
1997-06-16  0:00           ` Robert A Duff
1997-06-17  0:00             ` Robert Dewar [this message]
1997-06-22  0:00           ` Geert Bosch
1997-06-23  0:00             ` Larry Kilgallen
1997-06-25  0:00               ` Fergus Henderson
1997-06-25  0:00                 ` Larry Kilgallen
1997-06-23  0:00             ` Robert Dewar
replies disabled

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