r81: use kthread to replace pthread