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

Function normal

multiprocessingTUT/multiprocessing4_efficiency_comparison.py:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 print('multicore:' , res1+res2)
27
28def normal():
29 res = 0
30 for _ in range(2):
31 for i in range(1000000):
32 res += i+i**2+i**3
33 print('normal:', res)
34
35def multithread():
36 q = mp.Queue()

Calls

no outgoing calls

Tested by

no test coverage detected