File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3333\item The sections for initialized and non-initialized variables and heap are
3434considered as data
3535\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.
3737\item The text is shared between all processes which execute the same code.
3838The data segment and stack are private for each process.
3939\item Each system can use a different layout of a process address space
11781178 automatically grow mapped object when accessing beyond its current end.
11791179 \end {itemize }
11801180\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 }) .
11831183\item Example of a system command using memory mapped files is \texttt {cat(1) }
11841184on Solaris (for regular files). Using mapped memory is more efficient than
11851185calling \texttt {read } repeatedly, saving the overhead necessary for switching to
Original file line number Diff line number Diff line change 669669
670670% %%%%
671671
672+ \hlabel {POSIX_IPC}
673+
672674ifdef([[[NOSPELLCHECK]]], [[[
673675\pdfbookmark [1]{shm\_ open, sem\_ open, mq\_ open}{posixipc}
674676]]])
You can’t perform that action at this time.
0 commit comments