Delay for a fraction of a second in C
Guy Harris
guy at auspex.UUCP
Sat Nov 5 03:51:09 AEST 1988
>Pour yourself a cup of strong coffee, then try the following:
And watch it fail to compile on many systems.
Unfortunately, neither "select" nor "setitimer" exist on all UNIX
systems. (They also tend not to exist on non-UNIX systems, which is why
this discussion is getting sent back to comp.unix.questions, where it
belongs.)
However, you can use "poll" instead of "select" on System V Release 3,
so at least there you can block for an amount of time < 1 second
(although there still isn't a way to get a signal delivered after an
interval of < 1 second in vanilla S5R3).
More information about the Comp.unix.questions
mailing list