Kthread example code added