Reputation: 5458
I used the below code:
import time
def create_square(num):
time.sleep(5)
return num * num
create_square(12)
create_square(12)
create_square(12)
In task manager, why does it show 4 threads ?
Upvotes: 0
Views: 40
Reputation: 4146
It shows how many threads your interpreter has, not how many threads are there in your code.
Upvotes: 1