c# - File.Open Cross Thread Writing -


is safe open file , write stream across multiple threads? if no implement make safe?

no, standard filestream not thread-safe.

you should use var safe = stream.synchronized(file.open(...)); create thread-safe wrapper.

stream.synchronized() on msdn


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -