Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more thread question
#2
.join() will wait until that thread is finished.  If you don't call it, there won't be any errors or anything, but the main program might finish before the threads are done, so if there was some processing or output they were doing, you might not see it, because they maybe will be killed when python exits before they complete.

That's one of the tricky things about working with threads... sometimes it'll seem like it's working fine, and sometimes it won't, even though you've made no changes to your code.
Reply


Messages In This Thread
more thread question - by tony1812 - Aug-03-2017, 01:28 AM
RE: more thread question - by nilamo - Aug-03-2017, 08:43 PM
RE: more thread question - by tony1812 - Aug-04-2017, 01:06 AM
RE: more thread question - by nilamo - Aug-04-2017, 03:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,984 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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