1. printf 함수를 사용했을 경우와 write 시스템 호출(system call)을 사용하였을 경우의 
성능을 비교하는 프로그램을 작성하고, 그 결과를 분석하시오.

위가 문제 였구
------------------------------------------------------------------------

이게 내가 짠 소스인데

#include <stdio.h>
#include <fcntl.h>
#include <time.h>

int main(void)
{
        struct timespec ts;
        long time1, time2, time3;

        clock_gettime(CLOCK_REALTIME, &ts);
        time1=ts.tv_nsec;
        printf("HelloWorldn");

        clock_gettime(CLOCK_REALTIME, &ts);
        time2=ts.tv_nsec;
        write(0, "HelloWorldn", 11);

        clock_gettime(CLOCK_REALTIME, &ts);
        time3=ts.tv_nsec;

        printf("%.10ldn%.10ldn", time3-time2, time2-time1);           
        return 0;
}
----------------------------------------------------------------------

이것은 결과값

HelloWorld
HelloWorld
0000135000
0000186000
----------------------------------------------------------------------

여기서 프갤분들한테 질문 2가지만

소수 10자리 까지 출력하려고 했는데 

http://kldp.org/node/123679

위 사이트의 상단 결과값은 나처럼 000으로 채워짐
아래 결과값은 끝까지 정밀값이 전부 구해짐

왜 저런 현상이 나는거죠? OS 차이인가...

2번째는 문제 printf 와 write 쓰면 후자가 더 느린데 이유가 뭔지 ;
결과만 도출했고 설명을 못하겠음요...
버퍼 차이인가... 대충이라도 설명좀 해주실분;