◐ Shell
reader mode source ↗
Python logo

Table of Contents

  • threading — Thread-based parallelism
    • Introduction
    • GIL and performance considerations
    • Reference
      • Thread-local data
      • Thread objects
      • Lock objects
      • RLock objects
      • Condition objects
      • Semaphore objects
      • Semaphore example
      • Event objects
      • Timer objects
      • Barrier objects
    • Using locks, conditions, and semaphores in the with statement

Previous topic

Concurrent Execution

Next topic

multiprocessing — Process-based parallelism

This page

  • Report a bug
  • Improve this page
  • Show source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.6 Documentation »
  • The Python Standard Library »
  • Concurrent Execution »
  • threading — Thread-based parallelism
  • |
  • |

Table of Contents

  • threading — Thread-based parallelism
    • Introduction
    • GIL and performance considerations
    • Reference
      • Thread-local data
      • Thread objects
      • Lock objects
      • RLock objects
      • Condition objects
      • Semaphore objects
      • Semaphore example
      • Event objects
      • Timer objects
      • Barrier objects
    • Using locks, conditions, and semaphores in the with statement

Previous topic

Concurrent Execution

Next topic

multiprocessing — Process-based parallelism

This page

  • Report a bug
  • Improve this page
  • Show source
«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.6 Documentation »
  • The Python Standard Library »
  • Concurrent Execution »
  • threading — Thread-based parallelism
  • |
  • |
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Jun 16, 2026 (08:32 UTC). Found a bug?
Created using Sphinx 8.2.3.