OpenJDK JVM does not schedule threads on multiple cores
问题 When I run my multi-threaded Java program on the OpenJDK 6 JVM that is distributed with Ubuntu 12.04, all threads are scheduled on a single core. But when I run the exact same program on the JVM from Oracle's latest 1.7 JDK, it nicely rotates my 20 threads around all 24 available cores. The OpenJDK documentation explains that Java threads will be assigned to native threads, but it doesn't seem to be working. Could there be something configured wrong in my OpenJDK installation, or does it not