Difference between Createthread,beginthread,beginthreadex


I am new to this forum and for c++ also. Can any one tell me the exact difference Createthread,beginthread,beginthreadex........ I have searched many links but not of much use......
CreateThread is a WIN32 system call.

beginthread() was a first attempt at wrapping CreateThread. beginthreadex() was a better attempt and returns a handle that you can use with WIN32 synchronisation objects.

Why wrap CreateThread? The C runtime library has a number of static variables (like errno) that must be maintained on a per-thread basis. beginthread() and beginthreadex() manage this per-thread static data for the C runtime library. CreateThread, begin a Windows system call, doesn't (nor should it).
Thanks very much for ur quick reply.................
Topic archived. No new replies allowed.