How can I optimize or limit the CPU usage a zip process (DotNetZip) in c#? -
good day guys
i have app use archive folder using dotnetzip library. notice when goes actual "zipping" process, uses 100% of cpu. app used in conjunction (a tcp chat application) need use less cpu possible.
is there way can safely limit cpu? i've tried lowering priority doesn't make difference. thing have right setting affinity 1 core uses 50%. of course work on multi-core computers.
lowering priority want, not forcing process use arbitrary amount of cpu 50%.
this means process use unused processing capacity of cpu, , other more important processes still able function if zip process wasn't running @ all.
i should think low priority process using 100% of cpu because nothing else is. once other process(es) , running , try again, notice zip process not use 100%.
Comments
Post a Comment