support POSIX thread.