11 November 2012 3 4K Report

In my application, I need to search the entire data file many number of times. I am testing my program with fread and mmap functions of unix separately for reading or accessing data from the file. When I am accessing the data file more than two times in a program , mmap is taking less time than fread but when I am accessing the data file two times or only one time, mmap is taking more time than fread. what are the reasons for this

Similar questions and discussions