it depends on platform you use . Thread are mainly implementation specific . There are microsoft api for threads , pthread on unix, embedded threads and more and of course processes which differs from thread handling.
You should specify your platform first.