Maximum number of threads per process in Linux?

前端 未结 16 2799
轮回少年
轮回少年 2020-11-22 02:16

What is the maximum number of threads that can be created by a process under Linux?

How (if possible) can this value be modified?

16条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 02:38

    To retrieve it:

    cat /proc/sys/kernel/threads-max
    

    To set it:

    echo 123456789 > /proc/sys/kernel/threads-max
    

    123456789 = # of threads

提交回复
热议问题