Cool, I always looked at the methods of the class and never at the class itself. You opened my eyes.
Thanks, Eddie -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Fabian Schmied Sent: Monday, February 07, 2005 9:25 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Is access to Console.WriteLine synchronized by the .Net framework? > I have a multi-threaded application that does a lot of tracing in the > console window. Do I have to worry about synchronizing the access to the > Console.WriteLine method or this is taken care by the framework? I don't > think calls to the WriteLine method are atomic. Why don't you think so? <quote> .NET Framework Class Library Console Class [...] Thread Safety This type is safe for multithreaded operations. [...] This class uses synchronized TextReader and TextWriter instances. Multiple threads can concurrently read from or write to an instance of this type. </quote> Source: http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemConsoleClassTo pic.asp Fabian =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
