Xref: utzoo comp.sys.att:5712 comp.unix.questions:11975 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!aplcen!jhunix!ecf_hap From: ecf_hap@jhunix.HCF.JHU.EDU (Andrew Poling) Newsgroups: comp.sys.att,comp.unix.questions Subject: Uses of read MIN time (Was: termio under SysV (kbdhit() and getch())) Summary: polling, long reads Keywords: timeout on reads, polling, etc. Message-ID: <939@jhunix.HCF.JHU.EDU> Date: 2 Mar 89 15:16:34 GMT Expires: 2 Apr 89 00:00:00 GMT References: <1174@naucse.UUCP> <1182@naucse.UUCP> Reply-To: ecf_hap@jhunix.UUCP (Andrew Poling) Followup-To: comp.sys.att Distribution: usa Organization: The Johns Hopkins University - HCF Lines: 29 In article <1182@naucse.UUCP> jdc@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@gollum.hcf.jhu.edu . * . _/ \ * _ . . * * * . * . \ / \_ _/ \ * _/\ * ap@ipgate.hcf.jhu.edu * \ . * _/ /\ \ / () \_ /\_ / \_* . * . * . . ^ \_ / _/ \ _/ \_/ <> \_ ecf_hap@jhunix.hcf.jhu.edu \ /` <> / <> \_ / <> _ \ * . * . \ \_ () __/ _ \ /\ / \_ ^ \ L64A0429@jhuvm.BITNET . /\ \_ _/ () _/ \_ \_ _/ \_ \___________________________