[fpc-pascal] Writeln in threads

Jonas Maebe jonas at freepascal.org
Fri Feb 17 19:00:12 CET 2017

On 17/02/17 12:43, Ryan Joseph wrote:
> Is writeln thread safe? I’m getting some strange crashes and I’m curious if they’re related to calling writeln on multiple threads.

Unlikely. The output from different threads can be mixed at weird places 
since it all goes to the same file handle and buffer flushes can 
interleave, but every thread gets its own copy of the standard IO buffer 


More information about the fpc-pascal mailing list