tags:

views:

264

answers:

2

What's the overhead of a thread on 64bit windows? I believe it was 1mb of userspace for the stack and a smaller amount of kernel space in 32bit.

Thanks

+3  A: 

It can be whatever you want. The CreateThread() API lets you specify stack size. If you call it with a stack size of 0, it will use the stack defined in the executable file header, which can be set via a linker option. The default value (for both x86 & x64 systems) is 1MB.

Ferruccio
A: 

See item 4.2 in article: Comparison of analyzers’ diagnostic possibilities at checking 64-bit code.