Fixed thread ID assignment