Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have to run a internal program which will copy files from one place to another with constraint of CPU usage of below 20% and file I/O below 10 MB/s. I am knew to this MFC world. Is there any way to restrict CPU usage and I/O handling. Please Help.
Posted

1 solution

The requirement makes no sense in principle. CPU usage does not depend on just your application, it depends on all other running processes as well. Of course, you can lower priority of your thread and/or process but if hardly makes any sense, in almost all situations. No matter, the requirements you've described are incorrect anyway. They also make no practical sense. The goal of the system performance requirements is throughput, not percentage.

—SA
 
Share this answer
 
v4
Comments
Simon Bang Terkildsen 10-Oct-11 15:31pm    
+5
Sergey Alexandrovich Kryukov 10-Oct-11 15:36pm    
Thank you, Simon.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900