Gets the connection's thread ID.
The connection's thread ID is the ID of the thread that created and used to handle the connection.