Calling Console.WriteLine from multiple threads

.net, console.writeline

Solution

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.

Problem

Why does Console.WriteLine work from multiple threads?

Original source

Related problems