Solved

The number of thread per process

Posted on 1997-10-23
4
1,350 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
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 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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

630 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