I want to spawn a thread to do one function and when that function is done the thread should be done. What I have read about Python threads is the the thread keeps on running, is that correct? Or is when the function is done, in a thread, the thread is done?
I am looking to run a shared memory space thread which will have access to a single variable to read and change the variables value. Sending an email.
So basically, the process to the email is called, the email access the body of the message to be sent, the email is sent, and the thread ends.
Many examples abound on doing in process threading, I am just not clear on clean up when the function is done.