Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!tektronix!reed!iscuva!davids From: davids@iscuva.UUCP (David Schmidt) Newsgroups: comp.unix.wizards Subject: Handling multiple asynchronous reads under Ultrix Message-ID: <517@iscuva.UUCP> Date: Tue, 12-May-87 20:57:21 EDT Article-I.D.: iscuva.517 Posted: Tue May 12 20:57:21 1987 Date-Received: Sat, 16-May-87 03:22:18 EDT Organization: ISC Systems Corporation, Spokane, Wa. Lines: 22 Keywords: 4.2BSD Ultrix 1.2 Under Ultrix 1.2 (BSD 4.2), what is the best way to set up multiple, concurrent read requests? I would like to set up a routine that can respond to either a keyboard character or a network character without having to poll both reads (which would burn up a LOT of cpu time). I would also like to avoid using multiple processes (like old versions of CU did). I know this can be done as both TIP and CU under Ultrix only use one process. I've read the man entries for fcntl(2) and sigvec(2) but I am unsure of how to set up the reads. If it makes any difference one of the reads will be on a socket. Any code samples would be greatly appreciated! Thank-you, -- David Schmidt UUCP: davids@iscuva.ISCS.COM ISC Systems Corporation (tektronix!reed!iscuva!davids) East 22425 Appleway Phone: (509)927-5479 Liberty Lake, WA 99019