Hi,
This will appear to be a very strange question, but I do have good reasons for asking it.. When I start a Java program I use for example:
java MyProgramA
and then look at an O/S process list (for example the task manager in Windows) I see CPU activity listed under the program java.exe. Is there a way to notify the O/S at program startup that I want this process to be associated with MyProgram and not java.exe?
So instead of seeing a list like this when I run three different Java programs:
Image Name User Name CPU Mem Usage
---------- --------- --- ---------
java.exe javaUser 08 36,796K
java.exe javaUser 15 36,796K
java.exe javaUser 40 36,796K
I want to see something like this:
Image Name User Name CPU Mem Usage
---------- --------- --- ---------
MyProgramA javaUser 08 36,796K
MyProgramB javaUser 15 36,796K
MyProgramC javaUser 40 36,796K
In one case I do have some control / flexibility over how these are started and in other cases I have much less control and would hope for a solution that could be applied universally to all java.exe invocations (as a suggested procedure for a user).
Thank you.