I am currently implementing a program that requires me to handle threads and process.
IDEA:
1. There are multiple
java processes running and each process may have multiple threads. Current java implementation is such that
thread ids in java is unique for a particular process but not within the processes. So is there a way I could implement a unique thread ids among multiple processes?
2.Also, I need to implement an external java program that monitors these threads. By monitoring I mean, depending upon some logic I need to notify a particular thread(using unique thread id) regarding an event. Is there a way that I can access thread from external program. If yes how?
3) Can I use ThreadGroup for this? How does this work?
Are there any other solutions to implement the similar idea?
Thank you in advance.