comp.lang.ada
 help / color / mirror / Atom feed
From: rzy@dasc.nl (Rudy Zijlstra)
Subject: Re: Say it isn't so! (Formerly: Ada replacements for DOS I/O)
Date: Mon, 31 Oct 1994 10:36:45 GMT
Date: 1994-10-31T10:36:45+00:00	[thread overview]
Message-ID: <rzy.783599805@bambam> (raw)
In-Reply-To: 2EB14997@SMTPGATE2.STRATCOM.AF.MIL

"Bennett, Chip (KTR) ~U" <BennettC@J64.STRATCOM.AF.MIL> writes:

>Chris Warwick <cwarwick@FOX.NSTN.NS.CA> wrote:

>> We just got burned on a project using Alsys Ada. Seems we had assumed that
>> a multi-tasking Ada program would perform I/O is parallel with other
>> processing. The system service call actucally halts all processing in the
>> program until the system service is complete...

>> I don't mean to burn Alsys, since the bug(?) also exists in the Verdix
>> compiler we are using. The difference is the Verdix is for Unix so we just
>> sidestepped the problem by not using Ada tasks...

>We use SunAda (aka Verdix) with Motif.  Does this mean that if an
>application is drawing to the screen and number crunching at the same time
>in a separate Ada task, that the "background" task is going to be suspended
>for the same I/O interrupts that the "foreground" task is being suspended?

>Does everyone else consider this acceptable, or am I the only one that is
>appalled?

The problem you have i running two shedulers above each other. The OS 
schedeuler and the Ada internal scheduler. The OS scheduler knows
<nothing> about the fact that you are multithreaded (or however you want
to call it) and when the Ada (multi)task performs a (blocking) I/O, the
OS scheduler correctly blocks it. Keep in mind it knows (righly and
correctly) nothing about the Ada scheduler.... In other words, unless
you are running Ada 'native' on the target hardware, i.e. without
supporting OS, don't use tasking in Ada unless you are prepared to
accept penalties like these.

Rudy Zijlstra

#include <stddisclaimer.h>       This might not be the view of my employer.



  parent reply	other threads:[~1994-10-31 10:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-28 18:59 Say it isn't so! (Formerly: Ada replacements for DOS I/O) Bennett, Chip (KTR) ~U
1994-10-30 15:31 ` Robert Dewar
1994-10-31 10:36 ` Rudy Zijlstra [this message]
1994-11-05  3:04 ` R. William Beckwith
  -- strict thread matches above, loose matches on Subject: below --
1994-10-31 12:51 cwarwick
1994-10-31 14:45 CONDIC
replies disabled

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