title: Zip file - Parallelism
body: <p>I want to Zip all the files in a folder by using c#. I am not sure it's a good idea to use a Parallel loop to add files into a zip folder something like below. I need to handle almost 20k files with 2 MB each. Looking for a suggestion.</p>
  <pre><code>            using (var archive = ZipFile.Open(zf, ZipArchiveMode.Create))
              {
                 Parallel.ForEach(files, po, fPath =&gt;
                 {
                     archive.CreateEntryFromFile(fPath, Path.GetFileName(fPath));
                 });
              }
  </code></pre>