OS Default Stack Sizes: A Comparative Look

Windows typically sets a default stack size of 1MB for threads. In contrast, Linux commonly uses 8MB per thread, while macOS allocates 8MB for the main thread but only 512KB for new pthreads.

Sources

Open the full topic