Map process ID to thread.