Multi-Threading and process control in Java
Am a bit new to Java, recently I developed my first application that runs in a loop and read from a Oracle Database every number of minutes. The process basically, reads from a table the records which contain status "Ready" and retrieve a Shell Command and executes it on the file system.
So, far its been working fine, but now we want to take this to the next level. I was planning to capture the Unix Process ID when I run any command in order for me to be able to kill it when needed from the application side.
so, my question is how would I make the thread return the process Id of the OS?
Thanks in advance,