PDA

View Full Version : obtain pid, ppid and child pid from java program



shruavi
April 15th, 2012, 11:59 AM
Hi,
I want to obtain the process id, parent process id and the child process id through a java program. How can i do this? Can anybody give me a code which can do this? I basically want to get the process id of all of the processes which are related to one process, as in , the pid of the process itself, its parent, its child and its siblings. I want to use only java. any help would be appreciated.
Thank you.