Tilalukujen
Tilalukujen is a Finnish term used in computer science to refer to a set of synchronization primitives that guard access to shared state in concurrent systems. The word is formed from tila, meaning state, and lukko, meaning lock; tilalukujen denotes the plural possessive form, effectively “state locks” or “the state locks.” The concept mirrors the broader idea of locks or mutexes used to prevent data races and ensure consistency when multiple workers access mutable data.
Tilalukujen are employed to enforce mutual exclusion around critical sections of code that read or write shared
- Exclusive locks: allow only one holder at a time (mutual exclusion).
- Read-write locks: permit multiple concurrent readers but a single writer.
- Spinlocks: busy-wait locks useful in low-latency contexts.
- Recursive locks: permit the same thread to acquire the lock multiple times.
- Distributed locks: synchronize across multiple machines or processes.
Key trade-offs include lock granularity (coarse vs. fine), potential for deadlocks, lock contention and performance impact,
Mutex, Read-write lock, Spinlock, Concurrency control, Lock-free programming.