I'm looking to do something like this:
def func1(a,b,c)
# Does some complex things
return processed_output
def func2(a,b,c)
# Does some else that is also complex things
return processed_output
def parallelWrapperFunction(func1(a,b,c), func2(e,f,g))
# Runs everything in parallel
return func1_output, func2_output
if __name__ == '__main__':
# Get function inputs a,b,c,d,e,f
parallelWrapperFunction(func1(a,b,c), func2(e,f,g))
How do I go about setting this up? I'd like to use separate cores so I can bypass the global interpreter lock. I've seen suggestions to use the multiprocessing package in python. Just need to know how to go about doing this.