Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 06-20-2009, 03:38 AM   #1
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Number of threads per process

Hi All,

Could you please advise how I can determine the value of maximum number of threads a process can support in Solaris. Is there any tunable parameter that can be used to control this. What are the default value of this in Solaris 9/10 ?

I tried looking at the 'sysdef' outputs, but could not get this.
Old 06-20-2009, 10:07 AM   #2
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

Rep: Reputation: 105Reputation: 105
I don't think there is a specific limit for that. It ends up being limited by other resources -- for example, virtual memory or swap space. Check out

Also take a look at the man pages for ulimit and sysdef. I have on occasion had to set a higher ulimit because of multi-threaded applications that use files.
Old 06-22-2009, 08:18 AM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,707

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
If your goal is to limit the number of threads a process (or group of processes) can support, there are tunables by tasks, projects and zones to do it:
task.max-lwps, project.max-lwps and zone.max-lwps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase number of threads per process? Vaish Linux - Distributions 8 02-25-2010 01:21 AM
process and threads jkeertir Linux - Newbie 1 04-16-2009 11:01 AM
How can I retrieve the number of running posix threads? Pandamatak Programming 2 12-24-2005 11:45 AM
Threads/posts number in profile Ephracis LQ Suggestions & Feedback 3 08-13-2005 02:37 PM
pthread_create creates a number of threads with same tid!!!! dravya Programming 5 08-11-2004 03:18 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration