Locks & Synchronisation
Cross-process locks and synchronisation primitives
Mutual exclusion, semaphores, rate-limiting, and logical clocks.
| Primitive | Shape |
|---|---|
| Shared RW Lock | Reader-writer lock with writer preference |
| Shared Semaphore | Counting semaphore; bounded resource pool |
| Shared Rate Limiter | Token-bucket rate limiter; shared budget across processes |
| Shared Fence Clock | Hybrid Logical Clock (HLC) for cross-process event ordering |
For the prose overview, see shared-locks .