O'Reilly logo

Windows® via C/C++, Fifth Edition by Christophe Nasarre, Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. A Thread’s Stack

Sometimes the system reserves regions in your own process’ address space. I mentioned in Chapter 13, that this happens for process and thread environment blocks. Another time that the system reserves regions in your own process’ address space is for a thread’s stack.

Whenever a thread is created, the system reserves a region of address space for the thread’s stack (each thread gets its very own stack) and also commits some physical storage to this reserved region. By default, the system reserves 1 MB of address space and commits two pages of storage. However, these defaults can be changed by specifying either the /F

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required