I want the thread to run continuously within a function called by a period of 2 seconds. At this time, since it keeps running for 2 seconds, I want to get the true value thr