Hello all,

I am having a small basic question on stack size. I want
to know why the stack size is limited to 12kb i x86
kernel mode? what is the factor that decides this. from
my undrstanding this cannot be the limitation of
processor.

Is the user-mode stack size also limited, if not to 12kb?
Is this stack size is the character of OS? Can somebody
shed some light on it or point to resources.

ashok.

Re: Basic question by Mark

Mark
Mon Aug 04 06:32:55 CDT 2003

On Mon, 4 Aug 2003 02:37:11 -0700, "ashok" <heyashok@yahoo.com> wrote:

>Hello all,
>
>I am having a small basic question on stack size. I want
>to know why the stack size is limited to 12kb i x86
>kernel mode? what is the factor that decides this. from
>my undrstanding this cannot be the limitation of
>processor.
>

The 12k is essentially an arbitrary value. There is nothing
fundamental to the OS or the platform that requires this number.

>Is the user-mode stack size also limited, if not to 12kb?
>Is this stack size is the character of OS? Can somebody
>shed some light on it or point to resources.
>

User mode thread stack size is fixed at link time to a maximum limit.
I believe that defaults to 1MB.




=====================
Mark Roddy
Windows XP/2000/NT Consulting, Microsoft DDK MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com
For Windows Device Driver Training: see www.azius.com