From: <nj...@re...> - 2008-10-07 20:45:08
|
I've been writing an application in Tcl and I would like to use 10+ threads in a thread pool. I wrote the application in Windows and I can use tpool to successfully start any number of threads. When I try to use the same script on my Gentoo Linux machine the script fails if I try to start more than 3 or 4 threads. I'm using tcl and tk 8.4.18 and thread 2.6.5 on both machines. The very basic code that works on windows but not linux is: package require Thread set workers 10 set poolId [tpool::create -minworkers $workers -maxworkers $workers] When I try this in Linux it hangs indefinitely, if I reduce the number of workers to 4 it will work about 50% of the time, 2 works all of the time. Any ideas? Thanks for your help, Nathan Jett |