2 More Discussions You Might Find Interesting
1. Linux
To identify which java thread was hogging the cpu on linux I used to have to convert the lightweight thread id from a ps command (ps -eLo pid,ppid,tid,pcpu,comm | grep <PID>) to a hex value, take a thread dump and find the nid with the same hex value. I tried that recently on Enterprise Linux... (0 Replies)
Discussion started by: charriso
0 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,
I am new here in www.unix.com, i found this site because I am looking for an answer to this problem of mine.
I need to know a UNIX command to display an inode's thread id and process id.
Hope someone can help me on this.
Thanks :D (8 Replies)
Discussion started by: rodkun
8 Replies
LEARN ABOUT DEBIAN
pvm_gettid
GETTID(3PVM) PVM Version 3.4 GETTID(3PVM)
NAME
pvm_gettid - Returns the tid of the process identified by a group name and instance number.
SYNOPSIS
C int tid = pvm_gettid( char *group, int inum )
Fortran call pvmfgettid( group, inum, tid )
PARAMETERS
group Character string that contains the name of an existing group.
inum Integer instance number of the process in the group.
tid Integer task identifier returned.
DESCRIPTION
The routine pvm_gettid returns the tid of the PVM process identified by the group name group and the instance number inum. If pvm_gettid
is successful, tid will be > 0. If some error occurs then tid will be < 0.
EXAMPLES
C:
tid = pvm_gettid("worker",0);
Fortran:
CALL PVMFGETTID('worker',5,TID)
ERRORS
These error conditions can be returned by pvm_gettid.
PvmSysErr
Can not contact the local pvmd; most likely it is not running.
PvmBadParam
Bad Parameter most likely a NULL character string.
PvmNoGroup
No group exists by that name.
PvmNoInst
No such instance in the group.
SEE ALSO
pvm_joingroup(3PVM), pvm_getinst(3PVM)
30 August, 1993 GETTID(3PVM)