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.


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 class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

%d bloggers like this: