Mar-23-2020, 03:14 PM
There are 4 python functions that connect to the database and perform some database actions(A set of DML operations and writing the output to logfile)
I am using parallel programming in python to run functions in parallel to execute all the functions in parallel , as they are independent of each other:
How to measure their performance metrics?
I am using parallel programming in python to run functions in parallel to execute all the functions in parallel , as they are independent of each other:
p1= Process(target=func1(param1)) p1.start() p2= Process(target=func2(param2)) p2.start() p3= Process(target=func3(param2)) p3.start() p4= Process(target=func4(param2)) p4.start() p1.join() p2.join() p3.join() p4.join()Question: How do I measure if the functions are really running in parallel?
How to measure their performance metrics?