Need help on Parallel Programming - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Need help on Parallel Programming (/thread-25199.html) |
Need help on Parallel Programming - Kishore01 - Mar-23-2020 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: 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? |