[GRASS5] Driver Update
Glynn Clements
glynn.clements at virgin.net
Mon Apr 23 15:20:00 EDT 2001
Glynn Clements wrote:
> I suspect that I may have over-simplified some aspect; I'll re-examine
> anything which could change the timing aspects of the I/O.
Doh. select() was being called with a zero timeout, i.e. a busy-wait.
The end result: XDRIVER and the X server end up sharing all of the
available CPU time amongst themselves. With the attached patch (about
to be commited), the system remains 98% idle.
--
Glynn Clements <glynn.clements at virgin.net>
-------------- next part --------------
--- src/display/devices/lib/connect_sock.c~ Fri Apr 20 16:23:11 2001
+++ src/display/devices/lib/connect_sock.c Mon Apr 23 20:06:39 2001
@@ -26,7 +26,7 @@
struct timeval tv;
tv.tv_sec = 0;
- tv.tv_usec = 0;
+ tv.tv_usec = 10000;
FD_ZERO(&waitset);
FD_SET(listenfd, &waitset);
More information about the grass-dev
mailing list