我试图了解多处理优于线程的优势.我知道多处理可以解决Global Interpreter Lock问题,但是还有什么其他优点,并且线程不能做同样的事情?
python multithreading multiprocessing
我试图让2个函数同时运行.
def func1(): print 'Working' def func2(): print 'Working' func1() func2()
有谁知道如何做到这一点?
python parallel-processing multithreading
multithreading ×2
python ×2
multiprocessing ×1
parallel-processing ×1