[Stackless] Stackless related article

Richard Tew richard.m.tew at gmail.com
Sat Mar 1 15:22:18 CET 2008


A Round-Robin Scheduler for Cooperative Multi-Tasking Using Greenlets in Python
http://aigamedev.com/programming-tips/round-robin-multi-tasking

Game logic is highly concurrent; not only does each entity in the
world have its own main script, but there are typically many event
handlers and latent behaviors that can run at the same time also.
Luckily, there are many software engineering techniques to deal with
this — in particular custom task schedulers.

This article has multiple purposes. First, it introduces the idea of a
round-robin scheduler as a solution for this kind of multi-tasking —
explaining what you need for it to work in your own game using
executable pseudo-code. Second, it gives you a little background into
this kind of concurrency for the Python programming language, notably
stackless or the greenlet modules, showing how you can implement one
using the other.

...




More information about the Stackless mailing list