Let’s say I have a service that spawns 2 threads.
These 2 threads can access any of the service’s methods.
Is there any way I can tell (within a method) which of the threads had called it?
I know such a mechanism exists for processes in Android: I can use getCallingUid for instance, but is there something similar for threads as well?
Thank you
Thread.currentThread() will always deliver current thread.