Saturday, November 15, 2008

the max nubmer of threads can be created in linux

/proc/sys/kernel/threads-max

kernel/fork.c: fork_init()
max_threads = mempages / ( 8 * THREAD_SIZE / PAGE_SIZE);

No comments: