Since it is not possible to use loops in BTrace scripts an array or list of thread ids wouldn't be of any use.
You would have to switch to the unsafe mode to enable unsafe features (like eg. loops) and when you are in unsafe mode you can use the standard ThreadMXBean methods to get the thread ids.
Since it is not possible to use loops in BTrace scripts an array or list of thread ids wouldn't be of any use.
You would have to switch to the unsafe mode to enable unsafe features (like eg. loops) and when you are in unsafe mode you can use the standard ThreadMXBean methods to get the thread ids.