comp.lang.ada
 help / color / mirror / Atom feed
From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Tasking performance between Ada83 and Ada95
Date: 1997/06/25
Date: 1997-06-25T00:00:00+00:00	[thread overview]
Message-ID: <5oq70f$4f@mulga.cs.mu.OZ.AU> (raw)
In-Reply-To: 1997Jun23.101735.1@eisner


kilgallen@eisner.decus.org (Larry Kilgallen) writes:

>Geert Bosch <geert@gonzo.sun3.iaf.nl> writes:
>
>> IMO the best solution would be to start X system level threads and
>> implement a user-level threads package on top of it.
>
>That is the method used by Alpha VMS.  The kernel thread primitives
>in fact are not documented for public consumption.  The documented
>interface is the DECthreads library (which has a couple different
>APIs matching varying styles and standards).  DECthreads creates the
>user-mode lightweight threads which then get scheduled onto some
>number of kernel threads (typically numbering on the order of the
>number of CPUs).

What happens with blocking I/O?  Does DECthreads implement blocking
I/O operations using asynchronous kernel I/O operations, so that it 
will avoid blocking a whole kernel thread when all that really needs
to be blocked is a user thread?

If not, then choosing the right number of kernel threads may be a bit
tricky -- you want one for each CPU, to get multiprocessing, but
you also need one for every user-level thread that might get blocked
on I/O, so that you background compute threads don't get paused
when your foreground threads are doing blocking I/O.

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.




  reply	other threads:[~1997-06-25  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 ` 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
1997-06-22  0:00           ` Geert Bosch
1997-06-23  0:00             ` Larry Kilgallen
1997-06-25  0:00               ` Fergus Henderson [this message]
1997-06-25  0:00                 ` Larry Kilgallen
1997-06-23  0:00             ` Robert Dewar
1997-06-07  0:00 ` Robert A Duff
1997-06-08  0:00   ` Robert Dewar
1997-06-10  0:00     ` Jon S Anthony
1997-06-10  0:00     ` PascMartin
1997-06-10  0:00       ` Robert Dewar
1997-06-07  0:00 ` jim hopper
replies disabled

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