In a parallel Java code can we learn which core a thread is executed on?
Say that I have 10 threads and 4 cores, is it possible to learn which core is used for thread 1, thread 2, thread 3 etc in code?
It is not a crucial problem but I wonder if it is possible.