Showing "examples code" that cannot be run, and does not show the details (for example that your thread is non-blocking), make any and all answers just speculation.
Reduce your program to runnable code that demonstrates the problem, and you'll probably get a solution.
One thing I can suggest is that using exit() to terminate a thread is a very bad idea.
In reply to Re: Issue with time() in loop?
by BrowserUk
in thread Issue with time() in loop?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |