Number of threads running


 
Thread Tools Search this Thread
Operating Systems Solaris Number of threads running
# 1  
Old 02-04-2009
Number of threads running

Is there any command to find
1) the number of threads running
2) kernel boot mode
in solaris box
# 2  
Old 02-04-2009
if theads = processes -> "ps -ef | wc -l"

what means "kernel boot mode"?
# 3  
Old 02-04-2009
To find out the runlevel that you are currently in:
Code:
bash-3.00# who -r
   .       run-level 3  Jan 30 14:51     3      0  S

In Solaris 9 and earlier, the default runlevel is found in /etc/inittab
Code:
# cat /etc/inittab
ap::sysinit:/sbin/autopush -f /etc/iu.ap
ap::sysinit:/sbin/soconfig -f /etc/sock2path
fs::sysinit:/sbin/rcS sysinit           >/dev/msglog 2<>/dev/msglog </dev/console
is:3:initdefault:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
sS:s:wait:/sbin/rcS                     >/dev/msglog 2<>/dev/msglog </dev/console
...<snip>

In Solaris 10, this is determined in the Solaris Service Management Facility (SMF), but I haven't tried to change the default runlevel using anything other than init statements...
Code:
bash-3.00# svcs -a | grep milestone
online         Jan_30   svc:/milestone/name-services:default
online         Jan_30   svc:/milestone/devices:default
online         Jan_30   svc:/milestone/network:default
online         Jan_30   svc:/milestone/single-user:default
online         Jan_30   svc:/milestone/sysconfig:default
online         Jan_30   svc:/milestone/multi-user:default
online         Jan_30   svc:/milestone/multi-user-server:default

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to check number of threads running per processor in Linux machine?

I have a machine which has 32 processor but i am really not sure how many threads are running. It has hyperthreading enabled. Is there a way i can find that all 32 processors are being used and how many threads are there in my linux box. Its a 64 bit processor. I am having very high load average... (3 Replies)
Discussion started by: Moon1234
3 Replies

2. SuSE

Configuring Number Threads

I have this error message from the logs of Zimbra email running on SUSE 11.2 Is the thread maximum of 20 an operating system parameter, or is it part of the application code, or part of the java run time? Part two, how would I increase that number? (3 Replies)
Discussion started by: jgt
3 Replies

3. AIX

How to list all threads in a running process

Hello, On Linux, I can use 'ps -efL | grep process_name' to list all threads that belong to a running process. -L has a different meaning on AIX and I could not find an equivalent flag in the man pages. Does anyone know of a way to dump the threads under a running process? Thanks,... (2 Replies)
Discussion started by: makodarear
2 Replies

4. UNIX for Advanced & Expert Users

How to determine the number of NFS threads RUNNING on the system

Hi, Anyone can tell me how to get the number of NFS threads RUNNING on the system for Solaris 10? Someone told me for Solaris 9, the method is "echo "*svc$<svcpool" | adb -k. But, I've tried to google the method for Solaris 10 and did not find the corresponding method, please help... (1 Reply)
Discussion started by: wang.caiqi
1 Replies

5. Shell Programming and Scripting

Return code for parallel running threads

Hi, How to use the return code, for parallel running threads. Ex- grep pattern1 file1 file2 file3 file4 & grep pattern1 file5 file6 file7 file8 & grep pattern1 file9 file10 file11 file12 & return_code=$? if (return_code -eq 0) then echo "pattern found" else echo... (2 Replies)
Discussion started by: jitendriya.dash
2 Replies

6. UNIX for Advanced & Expert Users

how to identify running threads using commands

Dear All, I am developing one project using QT Designer 3.3.5. In my project contain 27-pthreads and 5-RT Task. how to i know how many threads are currently running in my application using linux command. I was try ps -ef , but it doesn't show the threads. kindly help me with is regards. (3 Replies)
Discussion started by: rajamohan
3 Replies

7. UNIX for Dummies Questions & Answers

Command to find number of threads

Shell script to find number of threads for relay http (0 Replies)
Discussion started by: rajeev3062002
0 Replies

8. Solaris

Maximum Number of threads suuported????

Hi, Anybody knows the maximum number of threads suuported by a process in solaris os. Please reply Thanks in advance :( (1 Reply)
Discussion started by: Agnello
1 Replies

9. Programming

Count Number Of Threads in a Process

I am trying to find out that how many number of threads are currently running or in any other state which is created by POSIX standard in a process. First I have defined a variable called proc_var of type proc defined in sys/proc.h.Next I open up the dir /proc and per directory wise I do an ioctl... (7 Replies)
Discussion started by: S.P.Prasad
7 Replies

10. UNIX for Advanced & Expert Users

Maximum number of threads per user

Anybody knows how to setup Maximum number of threads per user or some other value on Sun Solaris 8. (1 Reply)
Discussion started by: s_aamir
1 Replies
Login or Register to Ask a Question