Slow file writing with 'fwrite' function in C-code...
First of all, I am not sure if this problem comes from the OS or Hardware or even my program.
Anyway, when I execute a simple C-code which is doing some processing and writes the results
into the hard disc, the program takes too much time to finish up the file writing. The file size is about 450MB. I am using 'fwrite' function which is normally working well in elsewhere but in our new computer ( workstation which has 4 CPUs and each is dure core), it shows really slow file writing. It take a couple of minitues to finish up the writing. Sometimes, when I slightly change my code (Definiely, other parts which is not related with this writing module), it is fast ( done within a few secs).
Any one has same problem ? or Any idea will be reall appreciated.
Last edited by scho; 08-03-2006 at 02:13 PM.