I am zipping a folder to a zip file. The problem is, every time it does that, my other applications become slower, especially my chrome.
static void Main(string[] args)
{
string start = Console.ReadLine();
Thread tryer = new Thread(zipFolder);
tryer.Priority = ThreadPriority.Lowest;
tryer.Start(start);
Console.ReadLine();
}
public static void zipFolder(object str2in)
{
string tempString = str2in.ToString();
string[] zipPaths = tempString.Split('|');
ZipFile.CreateFromDirectory(zipPaths[0], zipPaths[1]);
Console.WriteLine("ENDED");
}
As you can see, reducing the priority to the lowest does not help in reducing the disk I/O.
I need a way to reduce the disk I/O to half