Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About _beginthreadex() and CreateThread()

Status
Not open for further replies.

isaisa

Programmer
May 14, 2002
97
IN
Hi,
I am reading about the multithreading concepts for windows. Reading "Jeffrey Richter" book on windows programming.It is recommended that for creating the threads the beginthreadex()should be used instead of CreateThread(). The reason being to make the application thread safe by providing some thread specific data structure association with the thread.
The point is not clear to me as what all other reasons for using the _beginthreadex()over CreateThread(). Can anybody help me out to make it clear ? Association of thread specific block is also not clear to me.

Thanks in advance.

Sanjay
 
Thanks Dian for the information.
I have gone through the article and the material is same as that of the book which i am currently referiing. i am not able to understand the actual association of the TidData structure with the individual thread and then the association of SEH with it.

If you can help me in understanding the same, it would be of great help to me ...

Thanks
sanjay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top