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