Beginthread is used to create a thread which begins the execution of a new thread. Here,the explanation for beginthread() in c is given below.
_beginthread() is C runtime library calls that call CreateThread() behind the scenes.
Once CreateThread() has returned, _beginthread() takes care of additional bookkeeping to make
the C runtime library usable ampconsistent in the new thread.
Example:
_beginthread( myFunc, 0, (void*) amparg);