ProcessBuilder.start()
returns a Process
object through which I can access the 3 streams (STDIN, STDERR, STDOUT) of the new process.
Unfortunately, I couldn't find a way to access the process id of the created process through the Process interface. Is there a way to access the process id?
Beyond this, I wished to do something like calling SuspendProcess()
and ResumeProcess()
[Win32 APIs]
Is there a way to do these things in Java?