Python Forum
Is there a way to not terminate a running thread in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to not terminate a running thread in python
#4
You can save the response times in a list, then find the average
responseTimesList = [1.2, 0.7, 0.9, 1.4] #These would be appended to the list somewhere in your code

average = sum(responseTimesList)/len(responseTimesList)
print("The average of the list is %s" %average)
If you're having trouble with this, post your code.
Reply


Messages In This Thread
RE: Is there a way to not terminate a running thread in python - by SheeppOSU - May-05-2020, 09:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The game should now run and terminate once the board is full, but still can’t identif rango 0 1,464 Jul-22-2021, 03:24 AM
Last Post: rango
  Pyinstaller keeps thread running pythonuser_0101 2 3,157 Mar-06-2020, 02:09 PM
Last Post: pythonuser_0101
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,603 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  Terminate a process when hotkey is pressed 66Gramms 0 2,256 Dec-24-2019, 06:41 PM
Last Post: 66Gramms
  How to terminate the caller fuction through callee? 100k 2 2,172 Nov-27-2019, 06:49 PM
Last Post: jefsummers
  How to terminate a list of inputs with a set value? SOS Manning 2 2,210 Sep-19-2019, 01:54 AM
Last Post: scidam
  Python Thread stops execution neethuvp 1 3,416 Feb-18-2019, 06:36 PM
Last Post: micseydel
  Debugging inside a thread with Python 2.3.4 zerajera 0 1,710 Nov-21-2018, 01:43 PM
Last Post: zerajera
  Is thread running? MuntyScruntfundle 0 2,093 Oct-19-2018, 06:10 PM
Last Post: MuntyScruntfundle
  how to terminate all the processes in C py2exe 0 2,086 Aug-02-2018, 04:31 AM
Last Post: py2exe

Forum Jump:

User Panel Messages

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