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.

what will the state of thread after calling the sleep methodAnewly createdBrunnablenot operational0Terminate death

原文地址: http://www.cveoy.top/t/topic/g1zH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录