queue — A synchronized queue class — Python 3.11.16 documentation

docs.python.org

Tin mới

sched — Event scheduler

contextvars — Context Variables

Python Module Index

3.11.16 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.