Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

td_ta_get_nthreads(3cdb) [sunos man page]

td_ta_get_nthreads(3C_DB)				Threads Debugging Library Functions				 td_ta_get_nthreads(3C_DB)

NAME
td_ta_get_nthreads - gets the total number of threads in a process for libc_db SYNOPSIS
cc [ flag... ] file... -lc_db [ library... ] #include <proc_service.h> #include <thread_db.h> td_err_e td_ta_get_nthreads(const td_thragent_t *ta_p, int *nthread_p); DESCRIPTION
The td_ta_get_nthreads() function returns the total number of threads in process ta_p, including any system threads. System threads are those created by libc or libc_db on its own behalf. The number of threads is written into *nthread_p. RETURN VALUES
TD_OK The call completed successfully. TD_BADTA An invalid internal process handle was passed in. TD_BADPH There is a NULL external process handle associated with this internal process handle. TD_DBERR A call to one of the imported interface routines failed. TD_ERR The nthread_p argument was NULL, or a libc_db internal error occurred. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libc_db(3LIB), attributes(5), threads(5) SunOS 5.10 20 Oct 1998 td_ta_get_nthreads(3C_DB)

Check Out this Related Man Page

td_ta_setconcurrency(3C_DB)				Threads Debugging Library Functions			       td_ta_setconcurrency(3C_DB)

NAME
td_ta_setconcurrency - set concurrency level for target process SYNOPSIS
cc [ flag... ] file... -lc_db [ library... ] #include <proc_service.h> #include <thread_db.h> td_err_e td_ta_setconcurrency(const td_thragent_t *ta_p, int level); DESCRIPTION
The td_ta_setconcurrency() function sets the desired concurrency level for the process identified by ta_p to level, just as if a thread within the process had called thr_setconcurrency(3C). RETURN VALUES
TD_OK The call completed successfully. TD_BADTA An invalid internal process handle was passed in. TD_BADPH There is a NULL external process handle associated with this internal process handle. TD_NOCAPAB The client did not imple- ment the ps_kill(3PROC) function in the imported interface. TD_DBERR A call to one of the imported interface routines failed. TD_ERR A libc_db internal error occurred. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libc_db(3LIB), ps_kill(3PROC), thr_setconcurrency(3C), attributes(5) SunOS 5.10 20 Oct 1998 td_ta_setconcurrency(3C_DB)
Man Page

12 More Discussions You Might Find Interesting

1. 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

2. HP-UX

how to see the threads count of a process in hp unix?

hi,all: how to see the threads count of a process in hp unix? thanks (2 Replies)
Discussion started by: bugbugbug
2 Replies

3. UNIX for Advanced & Expert Users

Unix threads information

Hi, Can someone tell help me on how to know the threads statistics on a unix machine similar to memory statisitcs. I woule like to monitor the Number of threads per process and total number of threads that a system can accomodate. Thank you mrag (1 Reply)
Discussion started by: mrag74
1 Replies

4. Linux

Maximum number of threads handled by a process????

Hi Anybody knows max. no. of threads handled by a process in linux. Please reply Thanks in advnce :confused: (0 Replies)
Discussion started by: Agnello
0 Replies

5. HP-UX

Need help. Unable to create threads after a certain number

Hi, I have a process which creates pthreads to generate some reports. After creating the reports these threads return null. But after 1024 threads, the process is not able to create any threads further.,and at max 5 threads are existing simultaneously and are returning the control back after... (2 Replies)
Discussion started by: Krsh
2 Replies

6. UNIX for Advanced & Expert Users

threads per process

What are the maximum number of threads possible per Process? Is it OS dependent? (1 Reply)
Discussion started by: digdarshan
1 Replies

7. 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

8. Post Here to Contact Site Administrators and Moderators

Misblended threads

In the last few minutes, two unrelated threads have become merged: https://www.unix.com/shell-programming-scripting/156628-measure-thread-execution-c-unix-2.html I guess that the intention was to merge threads 156625 and 156715 (both from rob171171). (1 Reply)
Discussion started by: methyl
1 Replies

9. Solaris

Reducing threads on T5140

Hi All, We have a T5140 server which has 128 threads in total. Is it possible to reduce the number of threads per core through some configuration changes? I am sorry for being so naive but I am one on this. Why would I like to do this? Unfortunately we have this for an Oracle Database Server... (6 Replies)
Discussion started by: VENKITACHALAMS8
6 Replies

10. Post Here to Contact Site Administrators and Moderators

Urgent

You need to do something about this now!!! https://www.unix.com/security/199773-i-undertake-oders-fresh-updated-dumps-bank-logins-about-bank-login-i-mak.html Appears on three different threads!!! No, four threads. (1 Reply)
Discussion started by: hicksd8
1 Replies

11. HP-UX

How to get number of threads for single java process on HP-UX OS?

Hi All, When i was trying to get total number of threads per java process using this command ps -o NLWP PID, I'm not getting any output. Could someone help me in this issue. Thanks, GMar (1 Reply)
Discussion started by: mgangumolu
1 Replies

12. UNIX for Beginners Questions & Answers

Finding threads.

What's the easiest way to find my own threads on this forum? Thanks. (1 Reply)
Discussion started by: MuntyScrunt
1 Replies