Originally Posted by
yog2mis
Hi
How to diffrer two thread of same process. for example we have two notepad opened in windows
both are saved with diffrent name. I want to close one by java code then how can i chose correct one by java program. if i kill notepad process then both will be closed. I want to close one at a time.
Thanks
Yogs
You differentiate threads by their unique thread Identifier (getID() of Thread class). But notepads are opened with processes so you
would need a process ID. (I am sure there is one in Java)