Tag Archives: threading

Python Concurrency: An Intro to Threads

Python has a number of different concurrency constructs such as threading, queues and multiprocessing. The threading module used to be the primary way of accomplishing concurrency. A few years ago, the multiprocessing module was added to the Python suite of standard libraries. This article will be focused on the threading module though. Continue reading Python Concurrency: An Intro to Threads

Python Concurrency: An Example of a Queue

Python comes with a lot of cool concurrency tools builtin, such as threads, Queues, semaphores and multiprocessing. In this article, we’ll spend some time learning how to use Queues. A Queue can be used for first-in-first out or last-in-last-out stack-like implementations if you just use them directly. If you’d like to see that in action, see the Hellman article at the end of this post. We’re going to mix threads in and create a simple file downloader script to demonstrate how Queues work for cases where we want concurrency. Continue reading Python Concurrency: An Example of a Queue

PyCon 2010: Saturday Session 2 (early afternoon)

I managed to make it to three talks in the middle session. Here’s the list: “508 and You: Taking the Pain out of Accessibility” with Katie Cunningham, “Actors: What, Why, and How” with Donovan Preston and “Python Metaprogramming” with Nicolas Lara. I’ll see you after the jump! Continue reading PyCon 2010: Saturday Session 2 (early afternoon)