Thread::getCurrentThreadIdIdentification Description
public static int Thread::getCurrentThreadId()
Will return the identity of the currently executing Thread ParametersThis function has no parameters. Return ValuesA numeric identity Examples
Example #1 Return the identity of the currently executing Thread
The above example will output: My is Thread #123456778899 |