exitcode the integer exit code of the process if the process is still runningthis is none if the value is negativea value of - means the process was terminated by signal name the name of the process pid the integer process id of the process here is an example that shows how to create and launch function (or other callableas separate processimport multiprocessing import time def clock(interval)while trueprint("the time is %stime ctime()time sleep(intervalif _name_ =' _main_ ' multiprocessing process(target=clockargs=( ,) start(here is an example that shows how to define this process as class that inherits from processimport multiprocessing import time class clockprocess(multiprocessing process)def _init_ (self,interval)multiprocessing process _init__(selfself interval interval def run(self)while trueprint("the time is %stime ctime()time sleep(self intervalif _name_ =' _main_ ' clockprocess( start(in both examplesthe time should be printed by the subprocess every seconds it is important to emphasize that for cross-platform portabilitynew processes should only be created by the main program as shown although this is optional on unixit is required on windows it should also be noted that on windowsyou will probably need to run the preceding examples in the command shell (command exeinstead of python idesuch as idle interprocess communication two primary forms of interprocess communication are supported by the multiprocessing modulepipes and queues both methods are implemented using message passing howeverthe queue interface is meant to mimic the use of queues commonly used with thread programs lib fl ff