Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MorvanZhou/tutorials
/ job
Function
job
threadingTUT/thread5_GIL.py:11–13 ·
view source on GitHub ↗
(l, q)
Source
from the content-addressed store, hash-verified
9
import
time
10
11
def
job(l, q):
12
res = sum(l)
13
q.put(res)
14
15
def
multithreading(l):
16
q = Queue()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected