comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: is there a 'wait' command in Ada
Date: 1996/12/02
Date: 1996-12-02T00:00:00+00:00	[thread overview]
Message-ID: <01bbe046$710f9600$228371a5@dhoossr.iquest.com> (raw)
In-Reply-To: 57smdo$9qv@felix.seas.gwu.edu


Hi Mike,
Have you ever thought of using the UNIX select function to implement a
"delay that doesn't burn CPU cycles or issue s shell command?
All you need to do is set all three of the file descriptor mask addresses
to null addresses, and point to a timeval structure initialized with the
desired delay time, and the UNIX kernel will swap you out until the time
has expired.  Works like a champ!
-- 
David C. Hoos, Sr.,
http://www.dbhwww.com
http://www.ada95.com

Michael Feldman <mfeldman@seas.gwu.edu> wrote in article
<57smdo$9qv@felix.seas.gwu.edu>...
> In article <dewar.849411873@merv>, Robert Dewar <dewar@merv.cs.nyu.edu>
wrote:
> >michael feldman says

> OK, you asked for it...:-)
> 
> One would think that a simple delay followed by a Put would be platform-
> independently portable, but in this case the devil turns out to be in
> the details.:-)
> 





  parent reply	other threads:[~1996-12-02  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-29  0:00 is there a 'wait' command in Ada ***** LOTUS *****
1996-11-29  0:00 ` Robert A Duff
1996-11-30  0:00 ` Michael Feldman
1996-11-30  0:00   ` Robert Dewar
1996-12-01  0:00     ` Michael Feldman
1996-12-01  0:00       ` Robert Dewar
1996-12-02  0:00         ` Larry Kilgallen
1996-12-02  0:00         ` Michael Feldman
1996-12-02  0:00       ` David C. Hoos, Sr. [this message]
1996-12-09  0:00         ` Fergus Henderson
1996-12-02  0:00 ` Corey Minyard
1996-12-03  0:00   ` Larry Kilgallen
1996-12-03  0:00     ` Michael Feldman
1996-12-04  0:00       ` Larry Kilgallen
1996-12-03  0:00   ` Robert A Duff
1996-12-03  0:00   ` Michael Feldman
1996-12-03  0:00 ` Corey Minyard
1996-12-04  0:00   ` Keith Thompson
1996-12-04  0:00   ` Robert Dewar
1996-12-10  0:00 ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1996-11-29  0:00 tmoran
replies disabled

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