title: How to view thread id of a process which has opened a socket connection?
body: <p>I have a process where multiple threads open multiple socket connection. I want to view this information and map what thread has opened which socket port. 
  <code>lsof -i</code> and <code>netstat</code> command gives the process ID, but couldn't display thread id. Is there any command which prints this information?</p>