Is putStrLn thread-safe?
Yes, it's thread-safe in the sense that you're asking about. A Handle
is protected by an MVar
which won't allow the buffer to become corrupted. As you pointed out, though, interleaving is a different matter.
Yes, it's thread-safe in the sense that you're asking about. A Handle
is protected by an MVar
which won't allow the buffer to become corrupted. As you pointed out, though, interleaving is a different matter.