jeudi 5 novembre 2015

Is it thread-safe to copy a file to different destinations with one thread each

I need to load the content of a file on different computers at the same time. Because a StreamReader will occupy the file, I want to copy it to a temporary folder before opening it. (The title is more general as there should be no difference between two threads running on one computer and two computers running one thread each.)

Question: will two threads copying a file at the same time affect each other even when the copy destinations are eparated?

Aucun commentaire:

Enregistrer un commentaire