dcsimg
Does jvm make different processes or threads while running?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   manu_kaushal
Posted On:   Monday, October 27, 2003 10:31 PM

When we run one single java program on linux, doing a ps gives a list of lot of java processes. My question is: Are these seperate processes or simply threads( do they have seperate process space? ). From ps can we determine whether a particular pid shown is a process or a thread? If these are seperate processes, then it looks that the priority given to a running java program by OS will be much more than any other C/C++ program. The synchronization between these threads/processes has to be done by jvm only. So, how the interaction between the jvm and os on one hand and jvm( as it manages these processes, is it a particular process itself? ) and these processes happens?    More>>


When we run one single java program on linux, doing a ps gives a list of lot of java processes. My question is: Are these seperate processes or simply threads( do they have seperate process space? ).



From ps can we determine whether a particular pid shown is a process or a thread? If these are seperate processes, then it looks that the priority given to a running java program by OS will be much more than any other C/C++ program.



The synchronization between these threads/processes has to be done by jvm only. So, how the interaction between the jvm and os on one hand and jvm( as it manages these processes, is it a particular process itself? ) and these processes happens?

   <<Less
About | Sitemap | Contact