Introduced a unique thread id for each Java thread.