Hi,

How to control disk I/O for partcular application in windows

Recommended Answers

All 4 Replies

ifstream in("filename"); // in file
ofstream out("filename"); // out file

In other words: give more information. What are you trying to do?

ifstream in("filename"); // in file
ofstream out("filename"); // out file

In other words: give more information. What are you trying to do?

I've to run one process, which *highly* loads the system, it makes a lot of disk i/o and I want to reduce it so that the entire system doesn't become unresponsive.

I've tried reducing the priority but it doesn't work for me, because as far as I know, the kernel automatically increases priority to i/o processes.

Any idea ??

thanks..

>I want to reduce it so that the entire system doesn't become unresponsive. Any idea??
Think about thread.

Even running at a few %, modern processors are able to keep a disk pretty busy.

A couple of ideas perhaps
1. Run it as an "idle" process, so it only runs when there is definitely nothing else going on.
2. Run it as a screen saver, so it only runs when you're not using the machine.
3. Run it overnight, when you're not there at all.
4. Buy a second hard disk, which is used exclusively for your intensive program. Even better if you happen to have a dual-core machine to begin with.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.