调用usleep的线程将被挂起“大约”5*1000微秒。在此期间CPU 的使用权会被让给其他想要执行的线程。因为...
unsignedint delay[20] = {500000, 100000, 50000, 10000, 1000, 900, 500, 100, 10, 1, 0}; int nReduce = 0;//误差 fprintf(stderr,"%19s%12s%12s%12s\n","fuction","time(usec)","realtime","reduce"); fprintf(stderr,"---\n"); for (i = 0; i < 20; i++) { if (delay[...