- cross-posted to:
- python@lemmy.ml
- python@programming.dev
- hackernews@derp.foo
[ comments | sourced from HackerNews ]
You must log in or register to comment.
- schmieroslav ( @schmieroslav@discuss.tchncs.de ) 1•1 year ago
I don’t quite grasp the immediate consequences of this - does this mean that I can use threads instead of subpeocesses if I want to parallelize my program beyond one core?
- maggio ( @maggio@discuss.tchncs.de ) 2•1 year ago
I also don’t know much about this subject, but I found this introduction quite helpful: What Is the Python Global Interpreter Lock (GIL)?
Further down it does mention that currently you would use multiple processes (each one having its ownn GIL) to do this, but I guess this would allow you to use threads instead, if I understand it correctly
- schmieroslav ( @schmieroslav@discuss.tchncs.de ) 1•1 year ago
Thanks for the link, that’s a great read.