Implement thread id->class name mapping