Path: utzoo!attcan!uunet!cbmvax!vu-vlsi!mpx1!erik From: erik@mpx1.UUCP (Erik Murrey) Newsgroups: comp.unix.wizards Subject: Re: portable way to do nap() Summary: 1/10th of a sec is too much! Message-ID: <550@mpx1.UUCP> Date: 10 Oct 88 00:29:20 GMT References: <543@mpx1.UUCP> <12665@ncoast.UUCP> Organization: MPX Data Systems, Inc., Wayne, Pennsylvania Lines: 17 In article <12665@ncoast.UUCP>, allbery@ncoast.UUCP (Brandon S. Allbery) writes: > May I suggest that for both of these, VMIN and VTIME in the tty driver are > what you should look for? > > [example deleted] This might work reliably at 1200 or 2400 baud, but what happens above that? Termio() only allows time values in 1/10 second increments. Isn't there a good chance that more than one keystroke will be received within 1/10th of a second? At 9600 baud, or 19.2k? This is why nap() works so well. It has a HZ resultion, which is 1/50 of a second on my AT clone, even higher on bigger machines... -- Erik Murrey /| // /~~~~/ | / MPX Data Systems, Inc. / | / / /____/ |/ erik@mpx1.UUCP / / / / /| Data Systems, Inc. {spl1,vu-vlsi,bpa}!mpx1!erik / / / / |====================