試ããJVMã¯Windowsçã® SunJDK 6u14ã çµè« Thread.getState()Therad.isAlive() NEWfalse RUNNABLEtrue BLOCKEDtrue TIMED_WAITINGtrue TERMINATEfalse æ¤è¨¼ã³ã¼ã public class ThreadState { public static void main(String[] args) { final Object lock = new Object(); Thread forLoopThread = new Thread(new Runnable() { public void run() { for (int i=0; i<1000000; i++) { lock.toString(); // é©å½ãªå¦ç } } }, "ForLoopThread"); Thre
{{#tags}}- {{label}}
{{/tags}}