thread safety
tags: learning programming
content
- a function is thread safe when it can be called by different threads concurrently, and it wouldn’t cause multi-thread related issues
- multi-thread related issues:
- race condition: different concurrent threads finish at a unexpected order
- data corruption