From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA03265 for caml-redistribution; Wed, 24 Mar 1999 15:16:38 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA03132 for ; Tue, 23 Mar 1999 17:08:36 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id RAA02541; Tue, 23 Mar 1999 17:08:33 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA05756; Tue, 23 Mar 1999 17:08:33 +0100 (MET) Message-ID: <19990323170833.09460@pauillac.inria.fr> Date: Tue, 23 Mar 1999 17:08:33 +0100 From: Xavier Leroy To: William Chesters , caml-list@inria.fr Subject: Re: threads & OCamlTK References: <39ADCF833E74D111A2D700805F1951EF0F00BA6B@RED-MSG-06> <199903221839.NAA20107@saul.cis.upenn.edu> <199903222004.UAA06832@toy.william.bogus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: <199903222004.UAA06832@toy.william.bogus>; from William Chesters on Mon, Mar 22, 1999 at 08:04:33PM +0000 Sender: weis > Trevor Jim writes: > > I've been using camltk with threads for a while. I find it is faster > > to run Tk as its own process -- the thread scheduler doesn't seem to > > do a good job with Tk involved. > Yes, I have found the same (Linux w/pthreads). CPU usage varies > between 20% at best and near zero at worst, depending on what else is > going on (that's why I originally thought Tk blocked threads > completely!). Several users reported big slowdowns in CamlTk programs using native threads. I have no idea on what is causing this (Tcl/Tk itself, the native threads interface, LinuxThreads, etc), but if anyone has a small program that reproduces the problem, I'll look at it. - Xavier Leroy