News for hackers. Stuff that matters.
Re:Python co-routines: follow-up to Python generators presen... by fredliu on Wednesday December 14, 2011 @08:17PM (#3354588)
ditto for "coroutine + scheduler as replacement of threads".

Another example using this framework is Simpy (http://simpy.sourceforge.net/), a process based discrete event simulation platform. You program in a way similar to the traditional multi-process/thread manner, but don't have to worry about mutex and locks at all, very sweet and productive!

The only caveat for this framework is that it's hard to fully utilize the power of multi-core systems, since it's single threaded. But if your application is more I/O bound than CPU bound, this framework could potentially give you huge benefit of multi-threading w/o the complexity.

There are no comments on this comment yet.