Should I restrict my program's disk activity?
-
I'm working on a program that reads a small text file (from AppPath) every x seconds, and is always running on the computer. Since most computers are always on, should I keep that x value as low as possible to reduce wear on the hard drive (and maximize laptop battery life), or is that not really a problem? I currently have x set at 5 seconds, and could go as long as 60 seconds.
-
I'm working on a program that reads a small text file (from AppPath) every x seconds, and is always running on the computer. Since most computers are always on, should I keep that x value as low as possible to reduce wear on the hard drive (and maximize laptop battery life), or is that not really a problem? I currently have x set at 5 seconds, and could go as long as 60 seconds.
If you are waiting for the file to change some how you may be better off using this[^] approach.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004
-
If you are waiting for the file to change some how you may be better off using this[^] approach.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004
-
I'm working on a program that reads a small text file (from AppPath) every x seconds, and is always running on the computer. Since most computers are always on, should I keep that x value as low as possible to reduce wear on the hard drive (and maximize laptop battery life), or is that not really a problem? I currently have x set at 5 seconds, and could go as long as 60 seconds.
People that use power management (eg laptops) will not be happy with that method, because the constant disk access will prevent the computer from going into power-saving mode (stand-by/hibernate). --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD