http://lmgtfy.com/?q=pthread_create

If you don't know how to find working examples with Google then multithreaded programming is going to be WAAAAAAAAAAY beyond you. Multithreaded programming done correctly is *A LOT* harder than using Google.