Thread safety refers to when a piece of code gets called simultaneously by multiple threads and it functions correctly.
https://blogs.msdn.microsoft.com/ericlippert/2009/10/19/what-is-this-thing-you-call-thread-safe/
https://stackoverflow.com/questions/261683/what-is-meant-by-thread-safe-code