from multiprocessing import Process,Manager def f(d,l,n): d[n]='1' d['2']=2 d[3]=None l.append(n) print(l) if __name__=='__main__': with Manager() as manger: d=manger.dict() l=manger.list() lst=[] for i in range(10): p=Process(target=f,args=(d,l,i)) p.start() lst.append(p) for i in lst: i.join() print(d)