From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Ada versus Java - Tasking
Date: 1997/01/19
Date: 1997-01-19T00:00:00+00:00 [thread overview]
Message-ID: <E48D1A.1sL@world.std.com> (raw)
In-Reply-To: OHK.97Jan18194202@ultra.tfdt-o.nta.no
In article <OHK.97Jan18194202@ultra.tfdt-o.nta.no>,
Ole-Hjalmar Kristensen FOU.TD/DELAB <ohk@ultra.tfdt-o.nta.no> wrote:
>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.
No, it's not hard to make task switching fast, if you're willing to give
up the idea that every Ada task should map onto exactly one OS
task/thread. But there are some advantages to that one-for-one mapping,
despite the HUGE performance penalty. E.g., when a task does a blocking
system call, it's nice if some other task gets to run while it's
waiting. Making that happen is hard (but I don't think impossible!)
unless each Ada task maps to an OS task (thread). And if the OS threads
are horribly slow (which is often the case), then tough luck.
>With a task switching overhead of this magnitude, tasks become
>unattractive as a way of programs dealing with high-speed IO, for
>example.
Indeed.
- Bob
next prev parent reply other threads:[~1997-01-19 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
1997-01-19 0:00 ` Robert A Duff [this message]
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 ` Jon S Anthony
1997-01-20 0:00 ` Dale Pontius
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