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_sendsig
SENDSIG(3PVM) PVM Version 3.4 SENDSIG(3PVM)
NAME
pvm_sendsig - Sends a signal to another PVM process.
SYNOPSIS
C int info = pvm_sendsig( int tid, int signum )
Fortran call pvmfsendsig( tid, signum, info )
PARAMETERS
tid Integer task identifier of PVM process to receive the signal.
signum Integer signal number.
info Integer status code returned by the routine.
DESCRIPTION
The routine pvm_sendsig sends the signal number signum to the PVM process identified by tid. If pvm_sendsig is successful, info will be 0.
If some error occurs then info will be < 0.
pvm_sendsig should only be used by programmers with Unix signal handling experience. Many library functions (and in fact the PVM library
functions) cannot be called in a signal handler context because they do not mask signals or lock internal data structures.
Further caveat: the signal numbers passed between systems are not mapped - PVM assumes that signal 9 on one system is the same as on
another.
EXAMPLES
C:
tid = pvm_parent();
info = pvm_sendsig( tid, SIGKILL);
Fortran:
CALL PVMFBUFINFO( BUFID, BYTES, TYPE, TID, INFO );
CALL PVMFSENDSIG( TID, SIGNUM, INFO )
ERRORS
These error conditions can be returned by pvm_sendsig
PvmSysErr
pvmd not responding.
PvmBadParam
giving an invalid tid value.
SEE ALSO
30 August, 1993 SENDSIG(3PVM)