change the thread queue to TCB queue