Python Forum
How to run existing python script parallel using multiprocessing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run existing python script parallel using multiprocessing
#2
Threads in python should only be used for input and output tasks. They are not like threads in other programming languages. When you have several threads started they would all wait until the current running thread pauses. Since you are not using shared variables and the only shared thing (the connection) is to read, I would recommend you multiprocesses. They are dangerous if you work with shared variables and write simultaniously, but then you will achieve different programms that run parallel and your computational time reduces
Reply


Messages In This Thread
RE: How to run existing python script parallel using multiprocessing - by ThiefOfTime - May-23-2018, 02:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiprocessing on python sawtooth500 12 676 Apr-02-2024, 06:03 PM
Last Post: sawtooth500
  Python - Merge existing cells of Excel file created with xlsxwriter manonB 0 3,758 Mar-10-2021, 02:17 PM
Last Post: manonB
  Python Parallel Programing wissam1974 6 8,826 Feb-25-2019, 08:48 PM
Last Post: wissam1974
  Updating the Pandas dataframe to existing excel workbook in existing worksheet. sanmaya 1 9,794 Jul-01-2018, 06:23 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

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