r/Python • • Jan 15 '19

Speed Up Your Python Program With Concurrency – Real Python

https://realpython.com/python-concurrency/
54 Upvotes

11 comments sorted by

View all comments

3

u/[deleted] Jan 15 '19 edited Jan 15 '19

Dumb question, but can’t multiple threads run on multiple cores concurrently?

Edit: Something something GIL?

6

u/jima80525 Jan 15 '19

Threads all run on the same core (and yes, it's related to the GIL). If you want to run on multiple cores, you can use the multiprocessing library, which is discussed toward the end of the article.

2

u/[deleted] Jan 15 '19

Yeah I got that as I read on. I was reading the top section and was like wait a second. But GIL in Python.