thread and c_thread updates.