Skip to content
Locks & Synchronisation

Locks & Synchronisation

Cross-process locks and synchronisation primitives

Mutual exclusion, semaphores, rate-limiting, and logical clocks.

PrimitiveShape
Shared RW LockReader-writer lock with writer preference
Shared SemaphoreCounting semaphore; bounded resource pool
Shared Rate LimiterToken-bucket rate limiter; shared budget across processes
Shared Fence ClockHybrid Logical Clock (HLC) for cross-process event ordering

For the prose overview, see shared-locks .