print('parent exit'wait for child exit when run on windowshere' this script' output--one child passes an object to the parentand the other both sends and receives on the same pipec:\pp \system\processesmulti py parent got['spam' 'eggs'parent got{'name''bob''spam' talker got{'ss''aa''pp''mm'parent exit this module' pipe objects make communication between two processes portable (and nearly trivialshared memory and globals example - uses shared memory to serve as both inputs and outputs of spawned processes to make this work portablywe must create objects defined by the package and pass them to process constructors the last test in this demo ("loop "probably represents the most common use case for shared memory--that of distributing computation work to multiple parallel processes example - pp \system\processes\multi py ""use multiprocess shared memory objects to communicate passed objects are sharedbut globals are not on windows last test here reflects common use casedistributing work ""import os from multiprocessing import processvaluearray procs count per-process globalsnot shared def showdata(labelvalarr)""print data values in this process ""msg '%- spid:% sglobal:%svalue:%sarray:%sprint(msg (labelos getpid()countval valuelist(arr))def updater(valarr)""communicate via shared memory ""global count count + val value + for in range( )arr[ + if __name__ ='__main__' parallel system tools global count not shared passed in objects are