Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Worker thread?
#1
My program does the following:
SQL query results based on GUI (user filled) data is passed to TCPprinter thread in arguments. I'm using threading because I need to check printer(s) state and don't want to freeze the GUI. However GUI will only show status info until the TCPprinter thread is finished. After that user is allowed to enter new data and start printing thread again.

Should I use queue instead and keep my TCPprinter thread running as long as GUI is alive, or is there some better approach?
Reply


Messages In This Thread
Worker thread? - by micko - Feb-27-2017, 07:54 AM
RE: Worker thread? - by Ofnuts - Feb-27-2017, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Joblib worker error sawtooth500 1 259 May-03-2024, 06:44 PM
Last Post: sawtooth500
  Suspending worker threads olderguy 1 2,072 Apr-21-2021, 10:28 AM
Last Post: Larz60+
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,758 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  Receive data from Redis RQ worker process freak14 0 1,942 Jul-15-2019, 12:39 PM
Last Post: freak14
  Sending a custom signal from a worker mhc 4 4,882 Jul-03-2018, 04:05 PM
Last Post: mhc
  Good way to have a worker queue accessible by multiple process? cheater 2 2,557 Dec-21-2017, 09:30 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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