I have been told that pickling class methods for multiprocessing are not possible with Processes. For some reason though, this code works. I have tried to complete this same task in other applications and my results have been inconsistent. What can I do for this feature to consistently work?
from multiprocessing import Process class test(): def run(self): print("HI") def p(self): p = Process(target=self.run) p.start() a = test() a.p() I have tried utilizing this functionality with python3 and python and it has worked and not worked for both versions. How do I ensure this works?