Can never end(continious) program of C program harm my processor or any part of my PC or LAPTOP?????
Can a unconditional loop of C program harm my processor???
If you let it run long enough yes it could, but if you stop it fairly soon, such as shorter than 10-20 minutes it shouldn't do any harm to the system.
Reply:Not if the computer has been properly designed to be able to cool the cpu under worst case conditions.
You may want to have your program sleep for a few microseconds between loops to reduce the percentage of cpu usage.
Reply:No, not normally, although if it included two disk functions that slammed the drive head back and forth (instead of repeatedly addressing a buffer) it would wear on the machine eventually. Otherwise you are just slamming electrons back and forth and running down the battery.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment