@list = $session->getThreads( )
The getThreads() function returns a list of threads that run in the current Domain Manager system.
Each element of the returned array is a reference to a four-element array. The four values that describe each thread are as they are described in getThreads return codes:.
Return array element |
Thread information |
---|---|
$t[0] |
Process ID |
$t[1] |
name |
$t[2] |
State |
$t[3] |
Status |
This example prints the thread IDs and names of all threads in thread ID order.
foreach $t ( sort { $a->[0] <=> $b->[0] } $session->getThreads( ) ) { print $t->[0] . " - " . $t->[1] . "\n”; }