Which of the following is not part of the thread lifecycle?

A. 'Blocked state' is part of the thread lifecycle. It occurs when a thread is temporarily inactive and waiting for a resource to become available.

B. 'Running state' is part of the thread lifecycle. It occurs when a thread is actively executing code.

C. 'Start state' is part of the thread lifecycle. It occurs when the start() method is called on a thread object to begin its execution.

D. Therefore, the correct answer is D. 'New state' is actually the initial state of a thread object when it is first created but has not yet been started. It is part of the thread lifecycle.

Thread Lifecycle: Identifying the Non-State

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

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