From: fjh@murlibobo.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: is there a 'wait' command in Ada
Date: 1996/12/09
Date: 1996-12-09T00:00:00+00:00 [thread overview]
Message-ID: <58h0om$mfb@mulga.cs.mu.OZ.AU> (raw)
In-Reply-To: 01bbe046$710f9600$228371a5@dhoossr.iquest.com
"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> writes:
>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!
That works OK in a single-task program, but in a multitasking
program, the UNIX kernel may swap out the whole _process_ rather
than just delaying the individual task.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.
next prev parent reply other threads:[~1996-12-09 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.
1996-12-09 0:00 ` Fergus Henderson [this message]
1996-12-02 0:00 ` Corey Minyard
1996-12-03 0:00 ` Michael Feldman
1996-12-03 0:00 ` Robert A Duff
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 ` Corey Minyard
1996-12-04 0:00 ` Robert Dewar
1996-12-04 0:00 ` Keith Thompson
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