Solved

The number of thread per process

Posted on 1997-10-23
4
1,348 Views
Last Modified: 2013-12-27
How do I know the number of thread per process under
unix, for example Solaris or HPUX?
and Can I change the number of thread per process
according to environments?
0
Comment
Question by:jhson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:dpodvaln
ID: 2007554
  In Unix each process have one thread.
0
 

Author Comment

by:jhson
ID: 2007555
Originally in unix each process has one thread.
Each process can have many threads using thread package.
But, each process cannot have beyond the max number of thread because of Unix limitation.
I heard we can manage the max number of thread per process in
unix configuration.

0
 
LVL 4

Accepted Solution

by:
rembo earned 100 total points
ID: 2007556

Run the 'sysdef' command will tell you the value of all
the tunable system parameters.  You can tune them in
the kernel.  Take a look at the config man page.

Hope that helps,

-Tony

0
 

Expert Comment

by:jrg
ID: 2007557
I can only comment on the Solaris Implementation. The number of threads per process is unlimited in the Solaris Implementation and in the POSIX standard. I.E. you can make as many thread_create() calls as you like. (pthread_create() under POSIX). Since each thread creation take a small amount of the virtual memory stack (1MB by deafult) so the real limitation how much stack space you use.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question