JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... 発生する。 バージョン この関数は glibc バージョン 2.2.3 以降で利用できる。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 pthread_getattr_np () Thread safety MT-Safe 準拠 この関数は非標準の GNU による拡張で ... が作成されている (x86-32 システム上で実行)。 $ ulimit -s # No stack limit ==> default stack size is 2 MB unlimited $ ./a.out Attributes of created thread: Guard size = 4096 bytes Stack address = 0x40196000 (EOS = 0x40397000) Stack size = 0x201000 (2101248) b ... サイズの倍数に切り上げられることが分かる (x86-32 ではシステムのページサイズは 4096 バイトである)。 $ ./a.out -g 4097 Thread attributes object after initializations: Guard size = 4097 bytes Stack address = (nil) Stack size = 0x0 (0) bytes Attributes of creat ... ... リングポリシーや パラメーターに設定しようとした") も追加で規定されている。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 pthread_setschedparam (), pthread_getschedparam () Thread safety MT-Safe 準拠 POSIX. ... olicy=SCHED_FIFO, priority=10 Scheduler settings in 'attr' policy=SCHED_RR, priority=20 inheritsched is EXPLICIT Scheduler attributes of new thread policy=SCHED_RR, priority=20 上記の出力では、スケジューリングポリシーと優先度がスレッド属性 オブジェクトで指 ... policy=SCHED_FIFO, priority=10 Scheduler settings in 'attr' policy=SCHED_RR, priority=20 inheritsched is INHERIT Scheduler attributes of new thread policy=SCHED_FIFO, priority=10 上記の出力では、スケジューリングポリシーと優先度が、 スレッド属性オブジェクト ... ... リングポリシーや パラメーターに設定しようとした") も追加で規定されている。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 pthread_setschedparam (), pthread_getschedparam () Thread safety MT-Safe 準拠 POSIX. ... olicy=SCHED_FIFO, priority=10 Scheduler settings in 'attr' policy=SCHED_RR, priority=20 inheritsched is EXPLICIT Scheduler attributes of new thread policy=SCHED_RR, priority=20 上記の出力では、スケジューリングポリシーと優先度がスレッド属性 オブジェクトで指 ... policy=SCHED_FIFO, priority=10 Scheduler settings in 'attr' policy=SCHED_RR, priority=20 inheritsched is INHERIT Scheduler attributes of new thread policy=SCHED_FIFO, priority=10 上記の出力では、スケジューリングポリシーと優先度が、 スレッド属性オブジェクト ... ... attr ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_init () 関数は attr が指すスレッド属性オブジェクト (thread attributes object) をデフォルトの属性値で初期化する。 この呼び出しの後、オブジェクトの各属性は (関連項目に載っている) 種々の 関数を使 ... たいアプリケーションでは正のエラーの返り値を処理するようにすべきである)。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 pthread_attr_init (), pthread_attr_destroy () Thread safety MT-Safe 準拠 POSIX.1-200 ... せると、以下のような出力が得られる。 $ ulimit -s # No stack limit ==> default stack size is 2 MB unlimited $ ./a.out Thread attributes: Detach state = PTHREAD_CREATE_JOINABLE Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_INHERIT_SCHED Scheduling ... ... attr ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_init () 関数は attr が指すスレッド属性オブジェクト (thread attributes object) をデフォルトの属性値で初期化する。 この呼び出しの後、オブジェクトの各属性は (関連項目に載っている) 種々の 関数を使 ... たいアプリケーションでは正のエラーの返り値を処理するようにすべきである)。 属性 この節で使用されている用語の説明については、 attributes (7) を参照。 インターフェース 属性 値 pthread_attr_init (), pthread_attr_destroy () Thread safety MT-Safe 準拠 POSIX.1-200 ... せると、以下のような出力が得られる。 $ ulimit -s # No stack limit ==> default stack size is 2 MB unlimited $ ./a.out Thread attributes: Detach state = PTHREAD_CREATE_JOINABLE Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_INHERIT_SCHED Scheduling ... ... ); int lremovexattr(const char * path , const char * name ); int fremovexattr(int fd , const char * name ); 説明 Extended attributes are name : value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the norma ... l attributes which are associated with all inodes in the system (i.e., the stat (2) data). A complete overview of extended attributes c ... ... ); int lremovexattr(const char * path , const char * name ); int fremovexattr(int fd , const char * name ); 説明 Extended attributes are name : value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the norma ... l attributes which are associated with all inodes in the system (i.e., the stat (2) data). A complete overview of extended attributes c ... ... ); int lremovexattr(const char * path , const char * name ); int fremovexattr(int fd , const char * name ); 説明 Extended attributes are name : value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the norma ... l attributes which are associated with all inodes in the system (i.e., the stat (2) data). A complete overview of extended attributes c ... ... , void * value , size_t size ); ssize_t fgetxattr(int fd , const char * name , void * value , size_t size ); 説明 Extended attributes are name : value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the norma ... l attributes which are associated with all inodes in the system (i.e., the stat (2) data). A complete overview of extended attributes c ... ... , void * value , size_t size ); ssize_t fgetxattr(int fd , const char * name , void * value , size_t size ); 説明 Extended attributes are name : value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the norma ... l attributes which are associated with all inodes in the system (i.e., the stat (2) data). A complete overview of extended attributes c ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。