Browse thread
LablGTK app maxes out CPU
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-07-04 (18:59) |
From: | Matt Gushee <matt@g...> |
Subject: | Re: [Caml-list] LablGTK app maxes out CPU |
Matt Gushee wrote: > GMain.Io.add_watch is used to cause the daemon to read the pipe (code > below). Now, I thought this would prevent the app from monopolizing > the CPU, but apparently it does not. When the app is started but > before the GUI is displayed for the first time, CPU usage is > negligible, but as soon as the GUI is displayed, the app starts using > all available CPU time, Oh, wait. I now remember that GMain.Io.add_watch has the optional ?prio argument. Would setting the watch function to a low priority help? If so, what would be a reasonable value? -- Matt Gushee : Bantam - lightweight file manager : matt.gushee.net/software/bantam/ : : RASCL's A Simple Configuration Language : matt.gushee.net/rascl/ :