Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
LablGTK app maxes out CPU
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 : :
: RASCL's A Simple Configuration Language : :