Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

The number of thread per process

Posted on 1997-10-23
4
Medium Priority
?
1,351 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

715 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