Throttle application based on disk usage or CPU usage

Can anyone recommend a way by which I can throttle the application based on current disk usage or even CPU usage.

The application that I am writing scans files on the hard drive and in itself will be a pretty hard drive. Can anyone recommend a way by which I can either turn off my application (or even pause it for that matter) when the disk usage is high (that is, the user himself works with a hard disk or with a processor)? Basically, my application should not interfere with user productivity. I know this is a pretty big research topic in itself. But at least I need some tips on how I approach this.

Help in any form is much appreciated. :)

Thanks.
Samrat.

+3
source share
2 answers

( " 70%?" ) this ( " Win32 # " )

+1

Vista / Windows, , , O/S .

, , -, , ?

+2

Source: https://habr.com/ru/post/1711565/


All Articles