File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 33
33
\item The sections for initialized and non-initialized variables and heap are
34
34
considered as data
35
35
\item It is also possible to connect segments of shared memory
36
- (\texttt {shmat }) or files (\texttt {mmap }) into the address space.
36
+ (\texttt {shm \_ open }) or files (\texttt {mmap }) into the address space.
37
37
\item The text is shared between all processes which execute the same code.
38
38
The data segment and stack are private for each process.
39
39
\item Each system can use a different layout of a process address space
1178
1178
automatically grow mapped object when accessing beyond its current end.
1179
1179
\end {itemize }
1180
1180
\item It is possible to share anonymous mapping between processes using
1181
- \texttt {fork() }. The only alternative is shared memory established using
1182
- \texttt {shmat } .
1181
+ \texttt {fork() }. The alternative is shared memory established using
1182
+ \texttt {shm \_ open } ( \pageref { POSIX_IPC }) .
1183
1183
\item Example of a system command using memory mapped files is \texttt {cat(1) }
1184
1184
on Solaris (for regular files). Using mapped memory is more efficient than
1185
1185
calling \texttt {read } repeatedly, saving the overhead necessary for switching to
Original file line number Diff line number Diff line change 669
669
670
670
% %%%%
671
671
672
+ \hlabel {POSIX_IPC}
673
+
672
674
ifdef([[[NOSPELLCHECK]]], [[[
673
675
\pdfbookmark [1]{shm\_ open, sem\_ open, mq\_ open}{posixipc}
674
676
]]])
You can’t perform that action at this time.
0 commit comments