I think you are correct, Stackless does nothing to support multiple cores or
CPUs.  However, neither does normal Python!  The threads in Python are NOT
operating system threads, but are cooperatively multitasked just like
Stackless.

But Stackless is supposed to be able to support much finer-grained
cooperation than Python threads, achieving 100,000's of usable tasklets in a
single application.

The only thing I've seen that breaks the CPU bottleneck with Python is
either the multiprocessing module (new with 2.6) or Parallel Python (
http://www.parallelpython.com).  Both take the approach that independent
processes can utilize multiple cores without a major Python overhaul.

Neither Stackless nor threads preclude you from also using multiprocessing
or Parallel Python.

On Fri, Aug 21, 2009 at 10:16 PM, Bottiger <bottig...@gmail.com> wrote:

>
> Stackless does not scale for multiple CPUs. It is only for cooperative
> multitasking. Stackless is meant to solve massive context switching
> costs, which I think Web2Py has very little of.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to