Programming Tips - Java: get id of current thread

Date: 2019mar21 Language: Java Keywords: obtain, identifier, number Q. Java: get id of current thread A.
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();