ulimitの- コアファイルサイズ(ブロック、 -c) 0 データSEGサイズ(バイト、 - D)無制限 スケジューリング優先度( -e)0 ファイルサイズ(ブロック、 - f)は無制限 ペンディング信号( -i)3612 最大ロックされたメモリ(キロバイト、 -l)64 最大メモリサイズ(バイト、 - M)無制限 開いているファイル( -n)1024 パイプサイズ(512バイト、-p)8つの POSIXメッセージキュー(バイト、 -q)819200 本当の -time優先(-r)0 スタックのサイズ(キロバイト、-s)8192 CPU時間(秒、 - t)は無制限 最大ユーザ・プロセス( -u)3612 の仮想メモリ(キロバイト、 - v)を無制限 ファイルロック( -x)無制限
書式#include <stdio.hに> する#include <stdlib.h>に含ま する#include <stdbool.h> 書式#include <unistd.h> 書式#include < 文字列の.h> の#include <strings.h> 書式#include <ERRNO.H> #includeは<sys / stat.h> の#includeは<sys / types.h>に する#includeは<sys / wait.h> の#include <fcntl.h> の#include <pthread.hの> 無効 * threadWork(無効 * 引数) { 一方、(1 ) 睡眠(1 )。 } int型のmain(int型のargc、char型 ** ARGV) { がpthread_t THID; int型私は= 0を。 一方、(1 ) { INT ERR =のpthread_create(&THID、NULL、threadWork、NULL); もし(ERR!= 0 ) { printf(" %sの\ n " 、にstrerror(ERR))。 出口(1 )。 } printf(" %d個\ N "、I ++ ); } リターン 0 ; }