Very slow file writing of 'fwrite' function in C
First of all, I am not sure if this problem comes from the OS or Hardware or even my program.
Anyway, when I excute a simple C-code which is doing some processing and writes the results
into the hard disc, the program takes to much time to finish up the writing. The file size is about 450MB. I am using 'fwrite' function( Pretty sure, in a correct way) which is normally
working well in otherwhere but in our new computer ( workstation which has 4 CPUs and each
is dure core), it shows really slow file writing. Sometimes, it takes 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.