threads and concurrency process([group [target [name [args [kwargs]]]]] class that represents task running in subprocess the arguments in the constructor should always been specified using keyword arguments target is callable object that will execute when the process startsargs is tuple of positional arguments passed to targetand kwargs is dictionary of keyword arguments passed to target if args and kwargs are omittedtarget is called with no arguments name is string that gives descriptive name to the process group is unused and is always set to none its presence here is simply to make the construction of process mimic the creation of thread in the threading module an instance of process has the following methodsp is_alive(returns true if is still running join([timeout]waits for process to terminate timeout specifies an optional timeout period process can be joined as many times as you wishbut it is an error for process to try and join itself run(the method that runs when the process starts by defaultthis invokes target that was passed to the process constructor as an alternativea process can be defined by inheriting from process and reimplementing run( start(starts the process this launches the subprocess that represents the process and invokes run(in that subprocess terminate(forcefully terminates the process if this is invokedthe process is terminated immediately without performing any kind of cleanup actions if the process created subprocesses of its ownthose processes will turn into zombies some care is required when using this method if holds lock or is involved with interprocess communicationterminating it might cause deadlock or corrupted / process instance also has the following data attributesp authkey the processauthentication key unless explicitly setthis is -character string generated by os urandom(the purpose of this key is to provide security for low-level interprocess communication involving network connections such connections only work if both ends have the same authentication key daemon boolean flag that indicates whether or not the process is daemonic daemonic process is automatically terminated when the python process that created it terminates in additiona daemonic process is prohibited from creating new processes on its own the value of daemon must be set before process is started using start( lib fl ff