Path: utzoo!utgpu!water!watmath!clyde!rutgers!mailrus!umix!husc6!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!hpcea!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.unix.wizards Subject: Re: Efficiency of detecting input FD after SIGIO? Message-ID: <5980018@hpfcdc.HP.COM> Date: 12 Feb 88 00:32:41 GMT References: <108@titan.SW.MCC.COM> Organization: HP Ft. Collins, Co. Lines: 12 > If there is more than one fd just use select(). > ... > But if you can't resist optimizing things, > do a (non-blocking) read of the fd you think has the data. > If it indeed has data you avoid the overhead of the select(). If there's more than one socket, you should always do a select, since there may be data on more than one socket. Remember that SIGIO signals are not queued. Bob Lenk {ihnp4, hplabs}!hpfcla!rml