sys.thread_info

sys.thread_info

A struct sequence holding information about the thread implementation.

Attribute Explanation
name

Name of the thread implementation:

  • 'nt': Windows threads
  • 'pthread': POSIX threads
  • 'solaris': Solaris threads
lock

Name of the lock implementation:

  • 'semaphore': a lock uses a semaphore
  • 'mutex+cond': a lock uses a mutex and a condition variable
  • None if this information is unknown
version Name and version of the thread library. It is a string, or None if these informations are unknown.

New in version 3.3.

doc_python
2016-10-07 17:43:59
Comments
Leave a Comment

Please login to continue.