Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threading best practice
#3
Thank you. Will do so more reading about class, I hadnt understood the sharing of results from them properly assumed they just used variables, I've not needed to use them.

Regarding not threading it I agree its better not to, my code is short and in coding terms has wait time so overhead isnt a concern but I am expecting a high likelihood of interrupt calls being almost simultaneous I cant see a way of writing the code that will accept that, although I am not sure how python would handle an interuppt mid execution? I might be able to sequence it in such a way that it looks for interupts in a specific order and waits for each one. But I need to have a longer think about the hardware, how thats triggered and what output I want to decide if that will create other problems.

Thanks
Reply


Messages In This Thread
Threading best practice - by EvanS1 - Apr-21-2020, 12:09 PM
RE: Threading best practice - by deanhystad - Apr-21-2020, 02:16 PM
RE: Threading best practice - by EvanS1 - Apr-21-2020, 10:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best practice on using virtual environments in Python bytecrunch 6 926 Feb-14-2024, 03:22 PM
Last Post: snippsat
  Concurrent futures threading running at same speed as non-threading billykid999 13 1,926 May-03-2023, 08:22 AM
Last Post: billykid999
  Tutorials on sockets, threading and multi-threading? muzikman 2 2,148 Oct-01-2021, 08:32 PM
Last Post: muzikman
  best practice for import libraries and using pyinstaller aster 3 2,924 Apr-17-2021, 11:12 AM
Last Post: snippsat
  How to properly close db connection, best practice t4keheart 6 3,077 Jan-24-2020, 06:58 PM
Last Post: Marbelous
  Help with string practice Hermann_Fegelein 2 2,724 Aug-15-2018, 04:56 PM
Last Post: Hermann_Fegelein
  Best Practice For String Quotations ? Zork_3 9 50,056 Sep-01-2017, 07:16 AM
Last Post: wavic

Forum Jump:

User Panel Messages

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