Erm, fork doesn't create threads, fork creates a new process. You'd be better off looking at pthreads or an environment specific threading model if you are doing c/c++.

Google will return plenty of references for pthreads.