A thread-safe function is a function that can be safely called from multiple threads without causing data corruption or crashes.