Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!nsc!icldata!altnet!altos86!dtynan From: dwp@mtune.ATT.COM (David Preisler) Newsgroups: comp.unix Subject: Asynchronous stuff Message-ID: <985@altos86.UUCP> Date: 31 Mar 89 03:18:33 GMT Sender: dtynan@altos86.UUCP Organization: AT&T ISL Middletown NJ USA Lines: 21 Approved: dtynan@zorba.Tynan.COM Trying to read user input async [like a text editor] via Unix(tm) SystemV 'NO DELAY' but it's a real cpu hog! Emacs reads keys async- but it's very good with the cpu- How Does it do it? Currently I'm polling for input. Also am trying to update the time once a second [just so I know that the program is still alive- the info displayed rarely changes ]- Is their an efficient way to do this? Currently, again, I'm just polling 'till one sec has elapsed: I can't sleep(1) because I'm also waiting for async input. Please respond via Email, don't often get to read NetNews. Thanks, David William Preisler AT&T Bell Laboratories Email: att!mtune!dwp.ATT.COM 200 Laurel Avenue Middletown, NJ 07748 Phone: (201) 957-2594