To implement a multiprocessing custom subclass, we need to do the following things:
- Define a subclass of the multiprocessing.Process class, redefining the run() method.
- Override the _init__(self [,args]) method to add additional arguments, if needed.
- Override the run(self [,args]) method to implement what Process should do when it is started.
Once you have created the new Process subclass, you can create an instance of it and then start by invoking the start method, which will, in turn, call the run method.