comp.lang.ada
 help / color / mirror / Atom feed
From: mcsun!corton!chorus!nocturne.chorus.fr!jloup@uunet.uu.net  (Jean-Loup Gai
Subject: Re: Ada and Unix--Blocked Tasks
Date: 6 Aug 91 20:12:37 GMT	[thread overview]
Message-ID: <11571@chorus.fr> (raw)

Drew Johnson (drew@verdix.com) writes:

> What is really needed is a solid, complete thread implementation.  I
> understand that Mach has or will have this, and some Unix vendors are
> slowly migrating toward this.

Both Mach and Chorus have had a solid and complete thread implementation
for several years.

> However, in order to implement non-blocking IO in Unix, your
> process must either catch and handle SIGIO, or it must poll the descriptor.
> Polling can be very expensive from an execution standpoint, and can possibly
> result in data loss, depending on the IO device driver involved.

Polling is not that expensive. If a task cannot perform the IO operation
immediately, the Ada runtime gives control to another ready task, so
that the cpu is not wasted. The IO is retried only later.  Various
strategies are possible: retry after a small fixed amount of time or
check also at synchronization points.

> IMHO, the best solution to this situation is the standardization of package
> POSIX_IO.  I believe that this package provides all the necessary
> functionality to perform non-blocking IO, and would then be very portable.

The user then has to care about non-blocking IO. For many applications
it sufficient to let the Ada runtime handle this transparently.

Jean-loup Gailly
jloup@chorus.fr

             reply	other threads:[~1991-08-06 20:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-08-06 20:12 mcsun!corton!chorus!nocturne.chorus.fr!jloup [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-08-16 15:43 Ada and Unix--Blocked Tasks bu.edu!inmet!offer
1991-08-14 15:24 torolab4.vnet.ibm.com!jrussell
1991-08-10  4:59 Robert I. Eachus
1991-08-07  1:35 Bob Kitzberger @midnight
1991-08-06 18:48 Mike Murphy
1991-08-06 17:23 David Emery
1991-08-06 14:57 Drew Johnson
1991-08-06 14:32 Dan L. Pierson
1991-08-06 14:17 mcsun!corton!chorus!nocturne.chorus.fr!jloup
1991-08-06 12:32 Arthur Evans
1991-08-06  9:17 Jim Showalter
1991-08-06  4:05 Mike Feldman
1991-08-05 19:56 Howard E. Turner, Jr.
1991-08-05 19:04 EDWARD CRAGG
1991-08-05 16:06 David Emery
1991-08-05 15:25 Fred Stluka
1991-08-05 14:14 Paul Stachour
1991-08-05  5:08 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.e
1991-08-02 18:17 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!cs.u
1991-08-02 13:28 Dennis Doubleday
1991-07-30 19:35 Dave Lewicki
replies disabled

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