문제

When I use several threads in my Java application, dies the VM automatically run these threads on different cores?

도움이 되었습니까?

해결책

The JVM isn't involved in that decision (any more, it was way back in Java 1.2). It's down to the OS now. So if you're using multiple threads, the OS can put them on different cores depending on its scheduling algorithms. (See also this question and its answers.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top