[EMAIL PROTECTED] 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 -- http://mail.python.org/mailman/listinfo/python-list