C
csjasnoch
I would like to be able to create a thread that uses a schedule
(located in a file) and continues to run and do a system call when the
time is right. I have most of it implimented but I am having a problem
keeping the main interface active while allowing the 2nd thread (my
system caller) to still function at the correct time.
I have a Tk interface that upon the click of a start button, will start
an already created and stopped thread.
I am use thread.run to do this. However, if I do not use thread.join
afterwards it seems that the thread goes to sleep as I want it to, but
then never wakes up
If I use thread.join it does everything fine, but my main process (the
user interface) is locked and can not do anything.
So how can I make it so my interface is still active and my secondary
thread is running in the background doing the system calls when the
time is right?
(located in a file) and continues to run and do a system call when the
time is right. I have most of it implimented but I am having a problem
keeping the main interface active while allowing the 2nd thread (my
system caller) to still function at the correct time.
I have a Tk interface that upon the click of a start button, will start
an already created and stopped thread.
I am use thread.run to do this. However, if I do not use thread.join
afterwards it seems that the thread goes to sleep as I want it to, but
then never wakes up
If I use thread.join it does everything fine, but my main process (the
user interface) is locked and can not do anything.
So how can I make it so my interface is still active and my secondary
thread is running in the background doing the system calls when the
time is right?