Description: Experiment two synchronous and asynchronous write efficiency set input buffer need to know the length of the input file. In addition to using the system call stat, the easier way is to use the return value of lseek to get the length of the file. Per one calculation to write the file time to set the size of the output buffer, it should be called before you start writing times (), record the start time, then the entire input buffer are copied to the output file, and then call times () call times (twice) time interval, is the limitations of a given size of the output buffer, write the time-consuming to copy the entire input file
To Search:
File list (Check if you may need any files):
2\.swp
.\apue.h
.\error.c
.\error2e.c
.\f1
.\f2
.\lock.c
.\lock.h
.\ourhdr.h
.\pathalloc.c
.\timewrite.c
.\timewrite.out
.\unix实验二+同步与异步write的效率比较.doc
.\write.c
2