I have scenario like reading two text files using multithreading in c#.net. How can i implement this scenario 开发者_开发问答synchronously using multithreading.
Lock the access to the file so that only one thread can access it.
Or maybe you intent for the results of the read to be processed shyncronouslly just invoke an event on both threads when done and lock on the event.
精彩评论