RSS | technovelty home | page of ian | ianw@ieee.org
Other questions that come up about threads
How many threads can I run? This depends on a number of things
ulimit of the user. Set the number of threads
with ulimit -u (or somewhere like
/etc/security/limits.conf).pthread_attr_setstacksize() allows you use smaller stacks.kernel/fork.c:fork_init()
/* * The default maximum number of threads is set to a safe * value: the thread structures can take up at most half * of memory. */ max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE);
What does ps show me? By default, ps should
only show you the parent thread. Try with -m for the
child threads.
posted at: Thu, 10 Feb 2005 15:47 | in /code/linux | permalink | add comment (0 others)

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.