What is the maximum number of threads that can be created by a process under Linux?
How (if possible) can this value be modified?
You can see the current value by the following command- cat /proc/sys/kernel/threads-max
You can also set the value like
echo 100500 > /proc/sys/kernel/threads-max
The value you set would be checked against the available RAM pages. If the thread structures occupies more than 1/8th) of the available RAM pages, thread-max would be reduced accordingly.