Python Forum
Tkinter + Multiprocessing startmap makes UI Freeze
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter + Multiprocessing startmap makes UI Freeze
#2
Tkinter freezes because you are sleeping 270 (15 * 18) seconds. "But wait!" you say, "I am doing multi-processing!". That may be true, but starmap() blocks, waiting for all the processes (which are executing on different processors) to complete. I don't know how many processes you can run in parallel, but if it is 3, that still means waiting 90 seconds (or more) for everything to finish. Can you use starmap_async()?
Reply


Messages In This Thread
RE: Tkinter + Multiprocessing startmap makes UI Freeze - by deanhystad - Sep-07-2022, 09:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What a difference print() makes Mark17 2 644 Oct-20-2023, 10:24 PM
Last Post: DeaD_EyE
  Upgrade makes Code Error kucingkembar 6 3,279 Jul-28-2022, 06:44 PM
Last Post: kucingkembar
  mpv window freeze before video end rfeyer 18 7,382 Mar-09-2021, 06:12 PM
Last Post: rfeyer
  Install Python 3.8 for EduPython and Cx-Freeze mederic39 1 1,851 Jul-24-2020, 01:24 PM
Last Post: Larz60+
  Cx Freeze to exe - HELP WBPYTHON 5 3,993 Apr-09-2020, 01:34 PM
Last Post: WBPYTHON
  A software freeze ! HELP ! redorc15 1 1,839 Oct-10-2019, 10:54 PM
Last Post: Larz60+
  help! this 'for' loop makes me crazy lerner50 5 3,005 Jul-09-2019, 03:39 PM
Last Post: perfringo
  cx-Freeze exe doesn't work ammann 1 4,373 Mar-19-2018, 10:58 AM
Last Post: buran
  The number of object makes code slower? fig0 1 2,562 Jan-25-2018, 11:16 PM
Last Post: Gribouillis
  Pyusb freeze when using Dev.read(nr,nr,timeout=1000) bojane 3 7,629 Jan-11-2017, 10:17 AM
Last Post: bojane

Forum Jump:

User Panel Messages

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