add a posix thread code based on C language