From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9cb6352457d1c6de X-Google-Attributes: gid103376,public From: fjh@murlibobo.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: is there a 'wait' command in Ada Date: 1996/12/09 Message-ID: <58h0om$mfb@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 203130373 references: <57qs45$d1l@felix.seas.gwu.edu> <57smdo$9qv@felix.seas.gwu.edu> <01bbe046$710f9600$228371a5@dhoossr.iquest.com> organization: Comp Sci, University of Melbourne newsgroups: comp.lang.ada Date: 1996-12-09T00:00:00+00:00 List-Id: "David C. Hoos, Sr." 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 | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.