Threadsafe is a term that is thrown around documentation, however there is seldom an explanation of what it means, especially in a language that is understandable to someone learning threading for the first time.
So how do you explain Threadsafe code to someone new to threading?
My ideas for options are the moment are:
- Do you use a list of what makes code
thread safe vs. thread unsafe - The book definition
- A useful metaphor
Eric Lippert says: