Question

I was reading about PyPy's stackless feature. My question is simple: does this get around the GIL? The page says it allows coding in "massively concurrent style". Does this also mean massively parallel style, taking advantage of multiple cores?

Was it helpful?

Solution

No. The microthreads are more lightweight and convenient to program, but still can't execute in parallel for the same reason a "stackful" Python can't just run threads in parallel. Nothing about the microthreads solves the problems addressed by the GIL, and in fact they're not intended to provide parallelism.

Note that the same is true for the original CPython-based Stackless (see Stackless python and multicores?).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top