Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* ircii for Linux hogs CPU, solution
@ 1993-03-15 21:51 Thomas Koenig
  0 siblings, 0 replies; only message in thread
From: Thomas Koenig @ 1993-03-15 21:51 UTC (permalink / raw)


A quick word of warning for those who do want to use the ircii
client on Linux:  If you compile it "out of the box", you'll get
a CPU hog.

The reason for this is that Linux currently changes the value the fourth
parameter of the select(2) call points to to reflect actually elapsed
time.  This means that ircii will go into a tight loop of select()
calls, which is an excellent CPU hog.

The solution is straightforward:  Save the value the parameter which the
timeout pointer points to (if that pointer isn't equal to NULL), and
restore it after the call to select().  This needs to be done in the
function new_select().

No context diffs available right here, unfortunately...
-- 
Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
The joy of engineering is to find a straight line on a double
logarithmic diagram.

-- 
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-03-15 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-03-15 21:51 ircii for Linux hogs CPU, solution Thomas Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox