According https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/CreatingThreads/CreatingThreads.html
maximum stack size is 512 KB for secondary threads, 8 MB for OS X main thread and 1 MB for iOS main thread.
Can someone tell actual information about maximum stack size on different OS?