July 7, 2008 § 1 Comment
After my previous research about Erlang, I thought to myself, how Python is stacking up against concurrent programming language?
The answer might be, sorry for the chessy pun above, Stackless Python.
Tasklets allows you to perform operations in multi-threading environments safely without the need of semaphores.
If what I understand is correct, the payload of each of this Tasklet is small. Therefore creating a whole bunch of them is not a huge penalty to system resources.
If there are resources need to be shared between Tasklets, use Channels.
In conclusion, Stackless Python gives the ability for developers to execute operations in a thread-safe manner, while still retain the familiar imperative syntax.
- I’m very happy with Stackless Python wiki, they give really easy step-by-step tutorials.
- Stackless Python – Intro
- Stackless Python – Tasklets
- Stackless Python – Channels
- Wikipedia – Erlang (concurrency)