Is the call stack stack restriction consistent across all computers?

My knowledge of how the call stack works is limited, but I was wondering: if I have a program that causes the stack to overflow after X number of recursions on my own computer (for example, some time ago I made a small program that did so about 400 recursions on my computer), will it be roughly the same on other computers in general, or can it change more?

This does not apply to anything specifically, I was just curious. Thanks.

+4
source share
1 answer

It can vary not only between computers, but also between processes and even threads when they are inside a process. When starting a workflow, it is possible to specify the size of the thread stack in many operating systems.

There are different default stack sizes in the OS.

+6
source

All Articles