从"read"看系统调用的耗时
1、fread和read有何不同先看两段代码:fread#include<stdio.h>#include<stdlib.h>FILE* pf = fopen("test.txt", "r");char buf[2] = { 0 };int ret = 0;do { ret = fread(buf, 1, 1, pf);} while (ret);...