implemented Kthread.join()