How to get the Id of the running thread?