Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2005

Tip: Looking for answers? Try searching our database.

Console Writes from Multiple Threads

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael D. Ober - 29 Dec 2005 15:27 GMT
In a VB 2005 Console Application, can multiple threads write to the console
without causing problems?  I know this is a quick way to destabilize a
Windows Forms application.

Mike Ober.
Mattias Sjögren - 29 Dec 2005 16:09 GMT
>In a VB 2005 Console Application, can multiple threads write to the console
>without causing problems?

Yes they can. Of course if you want the output to appear in a
predictable way you'll still need to synchronize the writes.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Michael D. Ober - 29 Dec 2005 18:34 GMT
Thanks - syncing the writes isn't a problem with synclock.

Mike.

> >In a VB 2005 Console Application, can multiple threads write to the console
> >without causing problems?
[quoted text clipped - 3 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.