1、_beginthreadex的底层是通过调用CreateThread函数来实现的。
2、分别使用CreateThread和_beginthreade创建线程,然后再里面做一个1亿次的 i++ ,前者结果小于1亿,后者等于1亿。
3、根据开发的经验,在Console程序一般使用CreatThread, 在win32 和MFV程序一般使用_beginthreadex。
1、_beginthreadex的底层是通过调用CreateThread函数来实现的。
2、分别使用CreateThread和_beginthreade创建线程,然后再里面做一个1亿次的 i++ ,前者结果小于1亿,后者等于1亿。
3、根据开发的经验,在Console程序一般使用CreatThread, 在win32 和MFV程序一般使用_beginthreadex。