"Paul Rubin" <http://phr...@nospam.invalid> wrote:
> "Hendrik van Rooyen" <m...@microcorp.co.za> writes: > > I think that this is because (like your link has shown) the problem > > is really not trivial, and also because the model that can bring > > sanity to the party (independent threads/processes that communicate > > with queued messages) is seen as inefficient at small scale. > > That style works pretty well in Python and other languages. The main > gripe about it for Python is the subject of this thread, i.e. the GIL. I have found that if you accept it, and sprinkle a few judicious time.sleep(short_time)'s around, things work well. Sort of choosing yourself when the thread gives up its turn. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list