java定時器 timer不如用threab

while(true){線程

  Thread.sleep(1000);im

}while

比timer好,由於timer是單線程,跑久之後就會出現線程死掉的狀況time

相關文章
相關標籤/搜索