Single thread program to make use of multiple cores

前端 未结 3 1296
南旧
南旧 2021-01-17 20:36

Can a single thread of a Java program automatically make use of multiple cores on the CPU?

3条回答
  •  粉色の甜心
    2021-01-17 21:29

    Usually gc is running in a separate thread. But usually it doesn't make any significant difference. That's all.

提交回复
热议问题