Update kthread.cpp