queue — A synchronized queue class — Python 3.9.25 documentation

docs.python.org

Tin mới

sched — Event scheduler

contextvars — Context Variables

Python documentation for the current stable release

The queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads. The Queue class in this module implem

Python Module Index

3.9.25 Documentation

The Python Standard Library

Concurrent Execution

heapq: Heap queue algorithm (a.k.a. priority queue).

The queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads. The Queue class in this module implem

weakref: Support for weak references and weak dictionaries.

CPython implementation detail: This method has a C implementation which is reentrant. That is, a put() or get() call can be interrupted by another put() call in the same thread without deadlocking or corrupting internal

multiprocessing.Queue

A queue class for use in a multi-processing (rather than multi-threading) context.

collections.deque.append

A queue class for use in a multi-processing (rather than multi-threading) context.