Thread State After Calling sleep() Method
B - Runnable.
When a thread calls the sleep method, it goes into the 'blocked' state for the duration of the sleep period. Once the sleep period is over, the thread returns to the 'runnable' state, waiting for its turn to execute.
原文地址: https://www.cveoy.top/t/topic/ozWk 著作权归作者所有。请勿转载和采集!