Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
64 位窗口上的线程开销是多少?我相信堆栈的用户空间为 1mb,而 32 位的内核空间则较少。
谢谢
它可以是你想要的任何东西。CreateThread( ) API 允许您指定堆栈大小。如果您使用堆栈大小为 0 调用它,它将使用在可执行文件头中定义的堆栈,可以通过链接器选项进行设置。默认值(对于 x86 和 x64 系统)是 1MB。