JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... emaphore set. The program prints out the IDs of the created objects, and then waits for the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program take ... attaches the existing shared memory segment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program ha ... 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" programs. #include < sys/types.h > #include < ... ... emaphore set. The program prints out the IDs of the created objects, and then waits for the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program take ... attaches the existing shared memory segment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program ha ... 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" programs. #include < sys/types.h > #include < ... ... emaphore set. The program prints out the IDs of the created objects, and then waits for the semaphore to change value. $ ./svshm_string_read shmid = 1114194; semid = 15 In another terminal window, we run the "writer" program. The "writer" program take ... attaches the existing shared memory segment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program ha ... 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" programs. #include < sys/types.h > #include < ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。