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

Table 1. getThreads return codes

Return array element

Thread information


Process ID







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”;