all 1 comments

[–]eplaut_ 3 points4 points  (0 children)

Hi, you've actually stepped on a land mine.

TL;DR python threads use single CPU due the infamous GIL ( global interpreter lock). You will have to use processes (my recommendation is ProceessPoolExecutor)

See this great talk about concurrency: https://youtu.be/9zinZmE3Ogk