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

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -