You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MSVC STL 调用 Win32 API `_beginthreadex` 创建线程;libstdc++ 调用 `__gthread_create` 函数创建线程,在 Windows 上实际上就是调用 `CreateThread`。
237
+
`_beginthreadex` 和 `CreateThread` 都是微软提供的用于创建线程的 C 风格接口,它们的主要区别在于前者依赖于 C 运行时库,而后者更适合纯 Windows API 的情况。使用 `_beginthreadex` 可以确保正确初始化和清理 C 运行时库资源,而 `CreateThread` 则适用于不依赖于 C 运行时库的环境。
0 commit comments