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.