add new multithread and kernel module code