ThreadList

Description:              This function returns a two dimensional array containing the name and statement last executed by each VTS thread.

Returns:                    Array

Usage:                       Script

Format:                      ThreadList()

Parameters:             None

Comments:               This function returns an allocated array such that the first row of the array (array[0][n]) contains the name of each thread, while the second row (array[1][n]) contains the statement most recently executed statement in that thread. The threads are ordered in the array in chronological order with the most recently started thread is at the beginning of the array.

Example:

If MatchKeys(1, "thread");

[

  allthreads = ThreadList(); 

]

See Also:

Profile | Thread | ThreadHistory | ThreadIdle | ThreadName |