Alex Rivera | Logout

Is console.writeline thread safe?

Asked 2011-01-27T03:43:04.297
51

Possible Duplicate:
Calling Console.WriteLine from multiple threads

Just want to know if multiple threads call Console.WriteLine, will it cause a deadlock?

Edit
Report

1 Answer

72

It's safe! From the .NET API browser:

Console I/O Streams

[...]

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

answered 2011-01-27T03:45:43.343

Your Answer