Writing to CSV-file from multiple threads

added by DotNetKicks
4/22/2019 5:29:21 AM

2 Kicks, 548 Views

I was writing document and metadata exporter that reads data from SharePoint and writes it to multiple files. I needed to boost up performance of my exporter and I went with multiple threads pumping out the data from SharePoint. One problem I faced - writing metadata to CSV-files from multiple threads in parallel.