JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 1 of about 1 for numThreads (0.001 sec.)
Man page of MALLOC_INFO 9414
MALLOC_INFO Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 malloc_info - malloc の状態をストリームに出力する 書式 #include < malloc.h > int malloc_info(int options , FILE * stream ); 説明 malloc_info () 関 ... include < stdlib.h > #include < pthread.h > #include < malloc.h > #include < errno.h > static size_t blockSize; static int numThreads, numBlocks; #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ } while (0) static void * thread_func(void *arg) ... me; if (argc < 4) { fprintf(stderr, "%s num-threads num-blocks block-size [sleep-time]\n", argv[0]); exit(EXIT_FAILURE); } numThreads = atoi(argv[1]); numBlocks = atoi(argv[2]); blockSize = atoi(argv[3]); sleepTime = (argc > 4) ? atoi(argv[4]) : 0; pthread ... _t *thr = calloc(numThreads, sizeof(*thr)); if (thr == NULL) errExit("calloc"); printf("============ Before allocating blocks ============\n"); malloc ...
https://man.mtool.work/man/20261015/man3/malloc_info.3.html
PREV 1 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。