Is putStrLn thread-safe? Is putStrLn thread-safe? multithreading multithreading

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.