Hi,
I ran the following code
I know that call to currentThread() returns a reference to the currently executing
thread ,but from the output I do not understand the other components that are returned.
Apart of the thread name (Thread-0 or main) what is the meaning of this "5,main"
The following is the output:
Current Thread Thread[main,5,main]
User Thread Thread[Thread-0,5,main] 1
User Thread Thread[Thread-0,5,main] 2
User Thread Thread[Thread-0,5,main] 3
User Thread Thread[Thread-0,5,main] 4
User Thread Thread[Thread-0,5,main] 5
User Thread Thread[Thread-0,5,main] 6
User Thread Thread[Thread-0,5,main] 7
User Thread Thread[Thread-0,5,main] 8
User Thread Thread[Thread-0,5,main] 9