Is it safe to call ICsharpCode.SharpZipLib in parallel on multiple threads
问题 We are currently using for compression the GZipOutputStream class of ICsharpCode.SharpZipLib library. We do it from a single thread. I want to split my input data stream into chunks and compress them in parallel. I'm worried though that this library may have some statics inside which will be overwritten from multiple threads and therefore corrupt the resulting stream. Any thoughts will be appreciated. 回答1: It is standard practice to make sure all static members are thread-safe when coding