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.
Comments
Post a Comment