Calling Console.WriteLine from multiple threads

user113476 picture user113476 · Jul 3, 2009 · Viewed 33.5k times · Source

Why does Console.WriteLine work from multiple threads?

Answer

Reed Copsey picture Reed Copsey · Jul 3, 2009

The console class handles the thread synchronization for you.

From the documentation of Console:

I/O operations using these streams are synchronized, which means multiple threads can read from, or write to, the streams.