Why am I able to run more concurrent threads than I have cpus?

前端 未结 0 1271
执笔经年
执笔经年 2020-11-27 21:58

My CPU has 4 cores so as I understand threads in Python, this means I can only run 4 threads concurrently. I wanted to test this out so I wrote:

import thread         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题