JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... r the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program takes three command-line arguments: the IDs of the shared memory segment and semaphore set ... ogram has ceased waiting on the semaphore and has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" progra ... semaphore value to become 0, and afterwards prints the string that has been copied into the shared memory segment by the "writer". /* svshm_string_read.c Licensed under GNU General Public License v2 or later. */ #include "svshm_string.h" int main(int ... ... r the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program takes three command-line arguments: the IDs of the shared memory segment and semaphore set ... ogram has ceased waiting on the semaphore and has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" progra ... semaphore value to become 0, and afterwards prints the string that has been copied into the shared memory segment by the "writer". /* svshm_string_read.c Licensed under GNU General Public License v2 or later. */ #include "svshm_string.h" int main(int ... ... r the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program takes three command-line arguments: the IDs of the shared memory segment and semaphore set ... ogram has ceased waiting on the semaphore and has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" progra ... semaphore value to become 0, and afterwards prints the string that has been copied into the shared memory segment by the "writer". /* svshm_string_read.c Licensed under GNU General Public License v2 or later. */ #include "svshm_string.h" int main(int ... ... み出し側が要求したロックを受け取ることを意味する。 読み出し側がいる限り、書き込み側は待つことになる。 PTHREAD_RWLOCK_PREFER_WRITER_NP This is intended as the write lock analog of PTHREAD_RWLOCK_PREFER_READER_NP . This is ignored by glibc because the POS ... ent to support recursive read locks would cause this option to create trivial deadlocks; instead use PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP which ensures the application developer will not take recursive read locks thus avoiding deadlocks. PTHREA ... D_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP ロック種別をこの値に設定すると、 読み出しロックが再帰的に行われない限りは、 書き込み側の待ちを避けることが ... ... み出し側が要求したロックを受け取ることを意味する。 読み出し側がいる限り、書き込み側は待つことになる。 PTHREAD_RWLOCK_PREFER_WRITER_NP This is intended as the write lock analog of PTHREAD_RWLOCK_PREFER_READER_NP . This is ignored by glibc because the POS ... ent to support recursive read locks would cause this option to create trivial deadlocks; instead use PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP which ensures the application developer will not take recursive read locks thus avoiding deadlocks. PTHREA ... D_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP ロック種別をこの値に設定すると、 読み出しロックが再帰的に行われない限りは、 書き込み側の待ちを避けることが ... ... _RAW_SOCKETS raw ソケットがサポートされている。 次の関数が影響を受ける。 getsockopt (), setsockopt (). --- - _POSIX_READER_WRITER_LOCKS - _SC_READER_WRITER_LOCKS このオプションは _POSIX_THREADS オプションを暗黙の内に指定する。 逆に POSIX.1-2001 では _P ... ... ファイルシステムに対する stat のブロックサイズを使用する。 read_write には以下のいずれかの値を取る。 GDBM_READER リーダ GDBM_WRITER ライタ GDBM_WRCREAT ライタ - データベースが存在しなければ作成する GDBM_NEWDB ライタ - すでに存在しても新しいデータベースを ... ... 号までの 距離が設定されます。 第 3 引数は各項目の前に空行が印字されることを禁止します。 VM [top [bottom]] 垂直マージン。 WA [writer-name [title]] 著者と著者のアドレスの記述を開始します。 空の WA / WE ペアでいくつかの名前を指定出来ます。 しかしアドレスにつ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。