- 论坛徽章:
- 0
|
redhat9中支持的最大线程
As NPTL is an 1-on-1 library, for each thread you create, a kernel thread is
also created. This has two implication:
- If you don't run your test as 'root' user, you are ruled by the 'ulimit -u'
limit. On fedora core 1, this limit is 4087. To overrun this limit, either
run the case as root change in /etc/security/limits.conf
- The second implication of the kernel threads is the amount of physical RAM
used. The kernel does not allow more than ( num_physpages / 16) concurrent
(kernel) threads. This is the value for mono-CPU box. I could only augment
this limit by adding some RAM in my box.
在2.4内核中要获得最大线程
1,以root运行该程序
2,增大物理内存 |
|