thread_statistics/4

thread_statistics(+ Id, + Key, - Value)*

Obtains statistical information on thread Id as statistics//22 does in single-threaded applications. This call returns all keys of @ref U60UstatisticsU2fU_2 "statistics//2"2, although only information statistics about the stacks and CPU time yield different values for each thread.

`

  • mutex_statistics

`

Print usage statistics on internal mutexes and mutexes associated with dynamic predicates. For each mutex two numbers are printed: the number of times the mutex was acquired and the number of collisions: the number times the calling thread has to wait for the mutex. The collision-count is not available on Windows as this would break portability to Windows-95//998/ME or significantly harm performance. Generally collision count is close to zero on single-CPU hardware.

`

  • threads

`

Prints a table of current threads and their status.