4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Salem
0
ifstream in("filename"); // in file
ofstream out("filename"); // out file

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

0
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..

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.