thread-safe
adjectiveUK /ˈθrɛd seɪf/
US /ˈθrɛd seɪf/
Able to be used by many parts of a computer program at the same time without causing mistakes.
The library's data structure is thread-safe, so multiple threads can update it without corrupting the data.
RELATED WORDS
OTHER MEANINGS
2. Designed so that shared data cannot be corrupted when accessed concurrently.
Making the counter thread-safe required wrapping every increment in a lock.
3. In everyday use, safe to handle or share among multiple people or processes at once.
The shared calendar app is thread-safe, so everyone can edit it simultaneously.
4. A property of code that avoids data races and undefined behavior under concurrent execution.
Reviewers flagged the cache as not thread-safe because it lacked proper synchronization.