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