02 Feb

Python threads

Jesse Noller has an excellent post on Python Threads and the Global Interpreter Lock that is well worth a read.

I, in particular, liked the use of decorators to get the “synchronized” feature known from Java and the long discussion about the GIL.

I haven’t used threads much in my own Python code — I usually split my scripts in separate processes to parallelise them on our cluster — so there were a lot in this post I didn’t know about.

33-53=-20

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

%d bloggers like this: