I was hoping to get some help on a question. I have an endless loop that I need to run and I need to update a set of variables (in this case x) at random time from the command line. Is there any way to do this?
For example:
x = 0 while true: x = x + 1 if x & lt; 30: Do something
and I will have to update the value of X from the command line periodically
A better way of applying it to me is that it will use a thread instead of an infinite loop and
notify ()
<>
/ html>
Comments
Post a Comment