comp.lang.ada
 help / color / mirror / Atom feed
From: ohk@ultra.tfdt-o.nta.no (Ole-Hjalmar Kristensen FOU.TD/DELAB)
Subject: Re: Ada versus Java - Tasking
Date: 1997/01/18
Date: 1997-01-18T00:00:00+00:00	[thread overview]
Message-ID: <OHK.97Jan18194202@ultra.tfdt-o.nta.no> (raw)
In-Reply-To: 01bc03ee$594dc520$829d6482@joy.ericsson.se


In article <32DFC320.41C67EA6@innocon.com> Jeff Carter <carter@innocon.com> writes:

< Stuff deleted>

   Here are some typical outputs:

   C:\ada>prod_cons
    18.340000000

   C:\ada>prod_cons
    18.180000000

   C:\ada>prod_cons
    19.170000000

   C:\ada>prod_cons
    18.120000000

   C:\ada>prod_cons
    19.660000000

   C:\ada>prod_cons
    17.850000000

   C:\ada>prod_cons
    17.630000000

   C:\ada>prod_cons
    18.010000000

   These give an average of 18.37 seconds per run. While not as good as 15
   seconds, this is better than 30 seconds.

   These figures are for GNAT 3.04a on a P120, 32MB, Win95. Built using

      gnatmake -O3 -gnatn prod_cons.adb

   I conclude the 62-pair limitation is not related to amount of memory.

   I would be interested in knowing how Jonas' version differs from mine.
   -- 
   Jeff Carter
   Innovative Concepts, Inc.


These task switching times are still pretty horrible though. Using
Unix processes and pipes or System V message queues, you can do just
as well. Any idea of why this is so? Does it follow from the
definition of an Ada task, or is it just this particular
implementation.
 
With a task switching overhead of this magnitude, tasks become
unattractive as a way of programs dealing with high-speed IO, for
example.





  parent reply	other threads:[~1997-01-18  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-16  0:00 Ada versus Java - Tasking Jonas Nygren
1997-01-16  0:00 ` Brad Balfour
1997-01-25  0:00   ` Robert Dewar
1997-01-16  0:00 ` wiljan
1997-01-17  0:00 ` Steve Doiel
1997-01-17  0:00 ` Jeff Carter
1997-01-19  0:00   ` David Taylor
1997-01-20  0:00     ` Jim Hopper
1997-01-20  0:00       ` Michael Paus
1997-01-21  0:00         ` Jim Hopper
1997-01-21  0:00           ` Larry Kilgallen
1997-01-21  0:00             ` jim hopper
1997-01-21  0:00     ` Dr. John B. Matthews
1997-01-23  0:00     ` Jeff Carter
1997-01-18  0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB [this message]
1997-01-19  0:00   ` Robert A Duff
1997-01-19  0:00 ` Tom Moran
1997-01-19  0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-01-19  0:00   ` Larry Kilgallen
1997-01-20  0:00 ` Dale Pontius
1997-01-20  0:00 ` Jon S Anthony
1997-01-20  0:00 ` Ada Tasking revisited (was: Re: Ada versus Java - Tasking) Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-01-20  0:00 ` Ada versus Java - Tasking Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-01-21  0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
replies disabled

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