10.2 Monitoring threads
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • Monitoring threads
          • is_thread/1
          • thread_property/2
          • thread_statistics/3
          • mutex_statistics/0
    • Packages
Availability:built-in
thread_statistics(+Id, +Key, -Value)
Obtains statistical information on thread Id as statistics/2 does in single-threaded applications. This call supports all keys of statistics/2, although only stack sizes, cputime, inferences, epoch, errors and warnings yield different values for each thread. For errors and warnings statistics/2 gives the global process count and this predicate gives the counts for the calling thread.196There is no portable interface to obtain thread-specific CPU time and some operating systems provide no access to this information at all. On such systems the total process CPU is returned. Thread CPU time is supported on MS-Windows, Linux and MacOSX.