Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!dciem!nrcaer!cognos!geovision!zyg From: zyg@geovision.UUCP (Zygmunt Wiercioch) Newsgroups: comp.windows.x Subject: Re: Blocked and Non-Blocked Event Handling in X Message-ID: <152@geovision.UUCP> Date: Mon, 31-Aug-87 19:54:24 EDT Article-I.D.: geovisio.152 Posted: Mon Aug 31 19:54:24 1987 Date-Received: Thu, 3-Sep-87 03:57:21 EDT References: <8708252051.AA19394@vulcan.dec.com> Reply-To: zyg@geovision.UUCP (Zygmunt Wiercioch) Organization: GeoVision Corporation, Ottawa, Canada Lines: 11 Using select on the display file descriptor ( dpyno() ) works just fine. We have a similar implementation: a display list process receiving data via a socket and also handling X events. The only problem is the overhead in the select call. You should send as much as possible down the pipe and process it before doing the select. I have found that if the amount of data to process was small, up to 70% of the time was spent handling the select/read loop. Buffering the requests made a big difference. -- Zygmunt Wiercioch UUCP: ...!utzoo!dciem!nrcaer!cognos!geovision!zyg