Re: threads & OCamlTK

From: Xavier Leroy (Xavier.Leroy@inria.fr)
Date: Tue Mar 23 1999 - 17:08:33 MET


Date: Tue, 23 Mar 1999 17:08:33 +0100
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: William Chesters <williamc@dai.ed.ac.uk>, caml-list@inria.fr
Subject: Re: threads & OCamlTK
In-Reply-To: <199903222004.UAA06832@toy.william.bogus>; from William Chesters on Mon, Mar 22, 1999 at 08:04:33PM +0000

> 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



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:21 MET