I make parallel processing program using java.util.concurrent.ForkJoinPool. While proceeding this program, I checked top
and htop
, and noticed that in top
there are only one java process but in htop
there are many processes.
My senior is writing parallel processing program using python, and he says that it is strange that there are only one process in top
. And also he says that the "CPU usage" in top
is usually over 90%. But my program uses only about 68%.
I thought that the cause is the difference in how to realize parallel processing between java and python. But I do not know whether it is correct. Please tell me the correct cause of this difference.
Thanks.