comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@romulus23.DAB.GE.COM (Ted Dennison)
Subject: Re: Ada replacements for DOS I/O
Date: 28 Oct 1994 12:17:34 GMT
Date: 1994-10-28T12:17:34+00:00	[thread overview]
Message-ID: <38qq4u$as2@theopolis.orl.mmc.com> (raw)
In-Reply-To: 44279.cwarwick@fox.nstn.ns.ca

In article <44279.cwarwick@fox.nstn.ns.ca>, "Elgar the Idiot aka Chris Warwick" <cwarwick@fox.nstn.ns.ca> writes:
|> 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...
|> 
|> Does anyone know of any replacements for the DOS I/O (specifically the Disk 
|> I/O operations) compatable with Alsys Ada?
|>  --
|>  Lorne Elliot in a Conan the Barabarian suit, or
|>  "Beware the fool, for only the fool may speak the truth"
|> 
|>  Chris Warwick
|>  cwarwick@fox.nstn.ns.ca
|>  warwick@anchor.hfx.prior.ca

Don't be so hard on Alsys (at least not for this). I know of NO Ada system
on any platform that handles tasks and I/O that well. VAX Ada comes close, 
but simultanious Text_IOs will kill the application. Tasks and I/O are 
NEVER a no-brainer.

There are several issues with tasking that can burn you. Your only real
protection is to investigate how these things work BEFORE you start coding.

As to your current problem, you will have to use low-level OS I/O calls that
do not block waiting for completion. If your OS (MeSsy-DOS?) does not have 
them, get another OS and/or platform, or live with it.

T.E.D.



  parent reply	other threads:[~1994-10-28 12:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-27 11:25 Ada replacements for DOS I/O Elgar the Idiot aka Chris Warwick
1994-10-27 23:04 ` Robert Dewar
1994-10-31 15:08   ` Mark Bayern
1994-11-03 11:23     ` Robert Dewar
1994-11-04  8:17       ` Samuel Tardieu
1994-11-06 21:03         ` Robert Dewar
1994-10-28 12:17 ` Ted Dennison [this message]
1994-10-31 13:21   ` Robert Dewar
1994-11-03  9:24     ` Robert I. Eachus
1994-11-05  5:37       ` Robert Dewar
1994-11-01 14:42   ` David Emery
1994-11-02 14:40     ` David Weller
1994-11-02 15:20   ` Robert I. Eachus
1994-11-03 13:01     ` Bevin R. Brett
  -- strict thread matches above, loose matches on Subject: below --
1994-10-29 22:01 tmoran
1994-10-31 12:46 cwarwick
1994-10-31 19:31 tmoran
1994-11-03  3:15 tmoran
1994-11-03 23:05 ` 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