long id = Thread.currentThread().getId();That is the system-assigned unique number. Like a progress id. If you have given a name to the thread, if can be obtained with:
String name = Thread.currentThread().getName();
long id = Thread.currentThread().getId();That is the system-assigned unique number. Like a progress id. If you have given a name to the thread, if can be obtained with:
String name = Thread.currentThread().getName();