Uses of read MIN time (Was: termio under SysV (kbdhit() and getch()))

Andrew Poling ecf_hap at jhunix.HCF.JHU.EDU
Fri Mar 3 01:16:34 AEST 1989


In article <1182 at naucse.UUCP> jdc at naucse.UUCP (John Campbell) writes:
>
>It turns out I misread the documentation.  Unlike another (to remain
>unamed) operating system I use, the MIN time is not the timeout value
>of the read, but rather the required number of 1/10 seconds the read
>must take!  Anyone want to tell me how useful this is?

I've used a MIN value of 0 to effect painless polling.  You can also put
the timing wait for a loop here instead - that way you spend what
would be "wasted" time watching the input.


>Thanks to all, patience requested of some, for who knows who else might be
>as confused as I appear to be?

Confused?...by System V?...Nah!   :-)



Andy
.  *        .       *           .     *  .     *   .     *    *     .       *
  .     *     _        .   *     *    .  .   *      andy at gollum.hcf.jhu.edu  .
    *  .    _/ \   *   _   .      .  *      *       *    .       *     .
\          /    \_   _/ \      *         _/\   *    ap at ipgate.hcf.jhu.edu    *
 \   . * _/  /\   \ / () \_       /\_   /   \_*  .   *   .       *    .    .
^ \_    /         _/       \    _/   \_/   <> \_    ecf_hap at jhunix.hcf.jhu.edu
    \ /`     <>  /   <>     \_ /   <>     _     \  *       .         *      .
\    \_  ()   __/        _    \  /\      / \_ ^  \   L64A0429 at jhuvm.BITNET  .
   /\  \_   _/   ()    _/ \_   \_      _/    \_   \___________________________



More information about the Comp.unix.questions mailing list