Skip to content
Cracked
AI
Problems
Tracks
Roadmap
Articles
Leaderboard
Search
Ctrl K
Mode:
Python
PyTorch
JAX
Python
Rust
C++
PyTorch
JAX
Python
Rust
C++
Log in
Sign up
Problems
Tracks
Articles
Roadmap
Leaderboard
Set up the runtime
Log in
Sign up
PyTorch
JAX
Python
Rust
C++
Radio
We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Concurrency practice problems in Python
Search problems
Difficulty:
Easy
Medium
Hard
Category:
Primitives
Framework
End-to-End
Research
Tag:
concurrency
typing
stdlib
dataclasses
generics
asyncio
api-design
exceptions
multiprocessing
memory
narrowing
error-handling
generators
mypy
pep-695
boundaries
protocol
validation
variance
cancellation
itertools
testing
threading
graphs
match
protocols
contextlib
functools
imports
introspection
packaging
pattern-matching
placement
ast
capstone
exception-groups
immutability
iterators
laziness
performance
security
typeddict
abc
architecture
async
backpressure
collections
concurrent-futures
enum
fitness-functions
inheritance
json
literal
literal-types
paramspec
recursion
taskgroup
weakref
assert-never
complexity
Show more tags
Sort:
Title
Easiest first
Hardest first
Recently added
Clear filters
Showing 19 of 19
Status
Title
Difficulty
Category
Tags
A Fetcher Protocol three implementations can satisfy
Medium
Primitives
asyncio
protocols
typing
generics
concurrency
asyncify: a ParamSpec wrapper that does not block the loop
Medium
Primitives
asyncio
paramspec
threading
executors
concurrency
BackgroundTasks: strong references, and a drain that raises
Medium
Primitives
asyncio
tasks
garbage-collection
error-handling
concurrency
BoundedBuffer: a blocking queue from one Condition
Medium
Primitives
threading
condition
generics
concurrency
producer-consumer
Bounded concurrency and backpressure
Hard
End-to-End
async
concurrency
backpressure
cancellation
exception-groups
BoundedCounter: check-then-act under 64 threads
Medium
Primitives
threading
locks
atomicity
typing
concurrency
Capstone: a typed, cancellable, observable worker pool
Hard
End-to-End
asyncio
taskgroup
backpressure
cancellation
generics
concurrency
Deadline: one budget, many nested scopes
Medium
Primitives
asyncio
timeouts
cancellation
retries
concurrency
ExceptionGroup, split() and except*
Hard
Primitives
exceptions
exception-groups
concurrency
typing
error-handling
fetch_all: structured fan-out with TaskGroup
Medium
Primitives
asyncio
taskgroup
exception-groups
generics
concurrency
map_with_failures: partial success on a thread pool
Medium
Primitives
concurrent-futures
threading
generics
error-handling
concurrency
Placement 5/6: async cancellation
Hard
Primitives
asyncio
cancellation
concurrency
typing
placement
process_stream: a bounded pipeline that cannot hang
Medium
Primitives
asyncio
queue
backpressure
taskgroup
concurrency
request_context: an id that survives tasks and threads
Medium
Primitives
contextvars
asyncio
threading
observability
concurrency
run_sync: the sync boundary a library should expose
Easy
Primitives
asyncio
event-loop
generics
typing
concurrency
run_workers: results, errors and a join deadline
Medium
Primitives
threading
generics
error-handling
shutdown
concurrency
Service.serve: a shutdown that is bounded and returns
Hard
End-to-End
asyncio
shutdown
cancellation
literal-types
concurrency
Subinterpreters: PEP 734 and the Typed Queue
Medium
Research
subinterpreters
pep-734
generics
typing
concurrency
with_cleanup: bounded cleanup on every exit path
Hard
Primitives
asyncio
cancellation
timeouts
generics
concurrency