Does Pypy's stackless thread option support parallel execution?

879 views Asked by At

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?

1

There are 1 answers

3
AudioBubble On BEST ANSWER

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?).