python's thread problem on Linux platform
robert
no-spam at no-spam-no-spam.com
Sun Apr 23 07:32:34 EDT 2006
devdoer at gmail.com wrote:
> I found that multi-threaded program(io-centralize ) runs very slowly
> on linux while the same program runs very quickly on windows.If I
> change the thread number to one ,the program runs quickly on linux, in
> fact the speed is quicker than the multi-threaded version .
> It turns out that python's multi-thread support on linux has some
> problems.Any comments?
>
You are probably looping or have other quirks', over-lock-ing ...
Python's thread/threading/Queue stuff is unfortunately Java-ish/
OS-mindset and not functional. Thus encourages screwing "ego threads".
Maybe you get things organized frictionless with those 2? :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491281
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491280
-robert
More information about the Python-list
mailing list