How to change default stack size in linux?

Правка en1, от shashankagrawal, 2020-07-27 22:10:26

We can change stack size in linux temporarily by using the command ulimit -s new_value, But is there any way to change stack size permanently, or Can we do something within C++ code, so it will change stack size by itself?

I tried changing this, but It didn't work. I faced this issue in hackercup qualification round D2, terminal gave segfault, and later I came to know about the low value of default stack size in linux.

Теги #linux, #stacksize

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский shashankagrawal 2020-07-27 22:10:26 542 Initial revision (published)