JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... する。 下記のシェルのセッションは実行例である。 $ ./a.out Main thread sleeping Subthread starting infinite loop Main thread consuming some CPU time... Process total CPU time: 1.368 Main thread CPU time: 0.376 Subthread CPU time: 0.992 プログラムのソース /* ... NULL); if (s != 0) handle_error_en(s, "pthread_create"); printf("Main thread sleeping\n"); sleep (1); printf("Main thread consuming some CPU time...\n"); for (int j = 0; j < 2000000; j++) getppid(); pclock("Process total CPU time: ", CLOCK_PROCESS_CPUTIM ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。