MCPcopy 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

9import time
10
11def job(l, q):
12 res = sum(l)
13 q.put(res)
14
15def multithreading(l):
16 q = Queue()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected