Skip to content
Locks & Synchronization

Locks & Synchronization

Cross-process locks and synchronization 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 .