Take the 2-minute tour ×  I have used fork() in C to start
another process. How do I start a new thread?  share|improve
this question It depends on the platform. Here's how to do it on
Windows: http://msdn.microsoft.com/en-us/library/ms682453.aspx
–  Eric Z Beard Sep 11 '08 at 15:08 As explained in the
CreateThread documentation you linked to, if the program uses
the C runtime library, _beginthreadex should be used, not
CreateThread. –  ChrisN Sep 11 '08 at 15:24 Thanks, I hadn't
noticed that. How do you know if you're using the CRT? I thought
everything used it. –  Eric Z Beard Sep 11 '08 at 16:19 You can
tell the compiler to not include the default libraries. Then you
cannot use the CRT by accident and you can use the Win32
functions entirely. –  Zan Lynx Apr 6 '10 at 3:59  5 Answers 5
up vote 39 down vote accepted  Since you mentioned fork() I
assume you're on a Unix-like system, in which case POSIX threads
(usually referred to as pthreads) are what you want to use.
Specifically, pthread_create() is the