[open questions] Python, threading, how to stop a second thread?
I have this code here: https://code.sololearn.com/cjJOE24e49E9/?ref=app I have a first thread which is started. then it runs for 5 seconds. when it stops, a second thread 'meier' is started. after 5 seconds i want to stop 'meier' in the same way i stopped the first thread before, but 'meier' runs despite calling t2.stop(). What do i have to do that thread 'meier' stops after 5 seconds also? Does this have to do something with the instruction class threading.Thread(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None) out of the Python3 documentation? I don't understand how I have to implement the method 'meier()' with the 'target'-parameter. Can anybody explain and show me how to do this in my code? I am also not getting enlightened by http://sebastiandahlgren.se/2014/06/27/running-a-method-as-a-background-thread-in-JUMP_LINK__&&__python__&&__JUMP_LINK/