Python Forum
Need help on Parallel Programming
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help on Parallel Programming
#1
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?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020