Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!gatech!psuvax1!vu-vlsi!mpx1!erik From: erik@mpx1.UUCP (Erik Murrey) Newsgroups: comp.unix.wizards Subject: portable way to do nap() Keywords: delay() in user space... Message-ID: <543@mpx1.UUCP> Date: 2 Oct 88 03:58:38 GMT Organization: MPX Data Systems, Inc., Wayne, Pennsylvania Lines: 29 How can I do a portable nap()? A nap() (under XENIX) allows a user process to block for a short time, usually a few hundred ms. In any case, SysVr2 doesn't support a nap()-like call which is very useful for two reasons (that I can think of): 1. Communications protocols implemented at the user process level (e.g. uucico, etc.) 2. Character input routines that must distinguish between ESC and a function key. I hear that some systems have a special device for nap()-ing, and others use select(), and still others are stuck with using a CPU intensive while() loop using the times() call. Does SysVr3 address this? How about SysVr4? If this has already been hammered to death, then please e-mail me a summary. Thanks! Erik Murrey -- Erik Murrey /| // /~~~~/ | / MPX Data Systems, Inc. / | / / /____/ |/ erik@mpx1.UUCP / / / / /| Data Systems, Inc. {spl1,vu-vlsi,bpa}!mpx1!erik / / / / |====================