Skip to content
UPEEC

Concurrency and Processes

asyncio, threading, multiprocessing, concurrent.futures, subprocess, queue, signal and shared memory.

Intermediate
Comments 0

This is an overview — pick a sub-topic below.

Sub-topics (8)

asyncio (module)

Event loop, tasks, timeouts, queues and streams for asynchronous I/O.

Intermediate♥ 0🔖 0💬 0

threading (module)

Threads, locks, events, conditions, semaphores and timers.

Intermediate♥ 0🔖 0💬 0

concurrent.futures

A simple, uniform API for thread and process pools.

Intermediate♥ 0🔖 0💬 0

subprocess

Run external programs and capture their output.

Easy♥ 0🔖 0💬 0

queue

Thread-safe FIFO, LIFO and priority queues for producer/consumer designs.

Easy♥ 0🔖 0💬 0

signal

Handle OS signals like Ctrl+C (SIGINT) or SIGTERM for graceful shutdown.

Intermediate♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.