4 ms·
This may be of interest: "Stackless Python allows you to use lightweight threads (tasklets) that can be switched with less overhead and it allows for cooperati
by jaydub 17y ago
This may be of interest:
"Stackless Python allows you to use lightweight threads (tasklets) that can be switched with less overhead and it allows for cooperative multitasking with the intention of making async programming easier. This helps with IO bound applications where you can have tens of thousands of tasklets running at the same time (try doing that with threads). It does not however allow you to take advantage of multi-core or multi-processor resources. It simply allows you to squeeze the most amount of work out of a single threaded process..."
http://www.stackless.com/pipermail/stackless/2007-August/001963.html http://www.stackless.com/pipermail/stackless/2007-August/001...
- jncraton 17y agoI will probably end up using stackless. CCP seems to have gotten it to work quite well for EVE. I'm still really impressed by their single server MMO architecture.
- wmf 17y agoStackless is the opposite of what he wants, which is to take advantage of multi-core or multi-processor resources.
- jncraton 17y agoIt turns out you are absolutely correct. Thanks for pointing that out. "Stackless python does not make use of any kind of multi-core environment it runs on." http://stackoverflow.com/questions/377254/stackless-python-and-multicores http://stackoverflow.com/questions/377254/stackless-python-a...
- jaydub 17y agoStackless is the opposite of what he wants The quote above does mention that "[Stackless] does not however allow you to take advantage of multi-core or multi-processor resources. It simply allows you to squeeze the most amount of work out of a single threaded process...". Depending on the application and its particular implementation, actually Stackless could be the right solution. Which is why I brought it up. In fact, it now looks as though he might go with Stackless, just like EVE online did :)