Say you have a network server program which spawns a thread for each new connection. Each connection involves this program editing some file. Two people connect at almost exactly the same time, and now you could have two threads trying to write to the same file at once, which may not turn out so good.