linux下多线程的问题
首先我使用如下的方式查看单进程下的最大线程数是64
cat /usr/include/bits/local_lim.h
/* The number of threads per process. */
#define _POSIX_THREAD_THREADS_MAX 64
/* We have no predefined limit on the number of thre ads. */
#undef PTHREAD_THREADS_MAX
但是我实际写一个小的测试程序 不断的创建线程,最大可以创建32757个线程,不是应该只能创建64个吗?
这个具体该怎么理解,希望有人解惑,谢谢!