[CentralOH] Python on Ubuntu Question

Brandon Craig Rhodes brandon at rhodesmill.org
Wed Nov 30 20:17:23 CET 2011


Bryan Harris <brywilharris at gmail.com> writes:

> If you want to get higher performance out of a python program by using
> more than one core, you basically have to use stackless or processing.
> Threading can never use more than one core.

You might be confusing Stackless Python with some other experiment in
multiprocessing from the early 2000's.  Stackless Python, like eventlet,
lets you write cooperative co-routines that can suspend their state; and
it does this by moving stack frames from the traditional C stack to the
heap instead.

But it does nothing about the Python interpreter's inability to use more
than one CPU core.

-- 
Brandon Craig Rhodes   brandon at rhodesmill.org   http://rhodesmill.org/brandon


More information about the CentralOH mailing list