Python multithreading, How is it using multiple Cores?

Posted by Sabirul Mostofa on Stack Overflow See other posts from Stack Overflow or by Sabirul Mostofa
Published on 2012-09-02T02:48:58Z Indexed on 2012/09/02 3:38 UTC
Read the original article Hit count: 185

Filed under:
|

I am running a multithreaded application(Python2.7.3) in a Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz. I thought it would be using only one core but using the "top" command I see that the python processes are constantly changing the core no. Enabling "SHOW THREADS" in the top command shows diffrent thread processes working on different cores.

Can anyone please explain this? It is bothering me as I know from theory that multithreading is executed on a single core.

© Stack Overflow or respective owner

Related posts about python

Related posts about multithreading