class Object定义的 public final void wait()throws InterruptedException Invoking wait() on an object causes the current thread to stop executing until some other thread invokes notify() on the same object. The wait() and notify() methods are used for thread synchronization
public final void wait()throws InterruptedException
Invoking wait() on an object causes the current thread to stop executing until some other thread invokes notify() on the same object. The wait() and notify() methods are used for thread synchronization
通常的解决方法就是把你要大循环的程序写到线程里,这样就不影响你的主程序了。
3楼4楼的不要误导LZ,LZ是想让循环继续,但是本界面不出现卡屏。而不是你们告诉的程序暂停。
通常的解决方法就是把你要大循环的程序写到线程里,这样就不影响你的主程序了。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~感觉这是正解,