In my program, I want to get local time in real time and if the time fits with the setting of my program, another thread will wake up ,do some operations and sleep. After some hours, the time fit with the setting again the thread is waked up again and......

I don't want to use loop to get current time, are there any good idea about this situation?


thanks a lot