MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / job

Function job

multiprocessingTUT/multiprocessing3_queue.py:8–12  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

6import multiprocessing as mp
7
8def job(q):
9 res = 0
10 for i in range(1000):
11 res += i+i**2+i**3
12 q.put(res) # queue
13
14if __name__ == '__main__':
15 q = mp.Queue()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected