Solved

The number of thread per process

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

Expert Comment

by:dpodvaln
Comment Utility
  In Unix each process have one thread.
0
 

Author Comment

by:jhson
Comment Utility
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
Comment Utility

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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 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.:
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.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now