D
D
daMage2014-09-05 10:00:45
Java
daMage, 2014-09-05 10:00:45

How to properly distribute the load on the processor?

Hello. I have a core i7 with 4 physical cores, 2 threads each. When running 4 threads, the processor is loaded by ~40%, while pgrep java only gives out two processes (even if the number of threads is increased). Tell me how the java machine works, does it distribute the load on the cores itself, or does it need to be specified explicitly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily, 2014-09-07
@Applez

In this case, jvm will do everything itself and it is better not to interfere with it. Your threads live inside the jvm and grep will always give you one java process (in most cases).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question