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
threads & OCamlTK
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-24 (14:16)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: threads & OCamlTK
> 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