關(guān)于線程休眠的問題
try?{ ????Thread.sleep(2000); }?catch?(InterruptedException?e)?{ ????//?TODO?Auto-generated?catch?block ????e.printStackTrace(); 這個這段休眠代碼是讓當(dāng)前線程休眠么?
try?{ ????Thread.sleep(2000); }?catch?(InterruptedException?e)?{ ????//?TODO?Auto-generated?catch?block ????e.printStackTrace(); 這個這段休眠代碼是讓當(dāng)前線程休眠么?
2015-03-28
舉報
2015-03-28
嗯,休眠2秒