Are sharing a memory-mapped file and sharing a memory region implemented based on each other?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Are sharing a memory-mapped file and sharing a memory region implemented based on each other? The following two quotes seem to say so, and seems to me that it is a chicken-egg problem.
Operating System Concepts introduces sharing a memory-mapped file in the following.
Do the multiple processes share the same file by sharing the same physical memory region holding the content of the file?
Multiple processes may be allowed to map the same ï¬Âle concurrently,
to allow sharing of data. Writes by any of the processes modify the data in
virtual memory and can be seen by all others that map the same section of
the ï¬Âle. Given our earlier discussions of virtual memory, it should be clear
how the sharing of memory-mapped sections of memory is implemented:
the virtual memory map of each sharing process points to the same page of
physical memoryâÂÂthe page that holds a copy of the disk block. This memory
sharing is illustrated in Figure 9.22.
It also introduces shared memory in the following.
Do multiple processes share a memory region by sharing a memory-mapped file?
Does a "memory-mapped file" reside on disk or main memory? I think it is on the disk, but "The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes" seems to mean that it resides in main memory.
Quite often, shared memory is in fact implemented by memory mapping
ï¬Âles. Under this scenario, processes can communicate using shared memory
by having the communicating processes memory-map the same ï¬Âle into their
virtual address spaces. The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes (Figure 9.23).
Thanks.
linux virtual-memory shared-memory shared-file
add a comment |Â
up vote
0
down vote
favorite
Are sharing a memory-mapped file and sharing a memory region implemented based on each other? The following two quotes seem to say so, and seems to me that it is a chicken-egg problem.
Operating System Concepts introduces sharing a memory-mapped file in the following.
Do the multiple processes share the same file by sharing the same physical memory region holding the content of the file?
Multiple processes may be allowed to map the same ï¬Âle concurrently,
to allow sharing of data. Writes by any of the processes modify the data in
virtual memory and can be seen by all others that map the same section of
the ï¬Âle. Given our earlier discussions of virtual memory, it should be clear
how the sharing of memory-mapped sections of memory is implemented:
the virtual memory map of each sharing process points to the same page of
physical memoryâÂÂthe page that holds a copy of the disk block. This memory
sharing is illustrated in Figure 9.22.
It also introduces shared memory in the following.
Do multiple processes share a memory region by sharing a memory-mapped file?
Does a "memory-mapped file" reside on disk or main memory? I think it is on the disk, but "The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes" seems to mean that it resides in main memory.
Quite often, shared memory is in fact implemented by memory mapping
ï¬Âles. Under this scenario, processes can communicate using shared memory
by having the communicating processes memory-map the same ï¬Âle into their
virtual address spaces. The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes (Figure 9.23).
Thanks.
linux virtual-memory shared-memory shared-file
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Are sharing a memory-mapped file and sharing a memory region implemented based on each other? The following two quotes seem to say so, and seems to me that it is a chicken-egg problem.
Operating System Concepts introduces sharing a memory-mapped file in the following.
Do the multiple processes share the same file by sharing the same physical memory region holding the content of the file?
Multiple processes may be allowed to map the same ï¬Âle concurrently,
to allow sharing of data. Writes by any of the processes modify the data in
virtual memory and can be seen by all others that map the same section of
the ï¬Âle. Given our earlier discussions of virtual memory, it should be clear
how the sharing of memory-mapped sections of memory is implemented:
the virtual memory map of each sharing process points to the same page of
physical memoryâÂÂthe page that holds a copy of the disk block. This memory
sharing is illustrated in Figure 9.22.
It also introduces shared memory in the following.
Do multiple processes share a memory region by sharing a memory-mapped file?
Does a "memory-mapped file" reside on disk or main memory? I think it is on the disk, but "The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes" seems to mean that it resides in main memory.
Quite often, shared memory is in fact implemented by memory mapping
ï¬Âles. Under this scenario, processes can communicate using shared memory
by having the communicating processes memory-map the same ï¬Âle into their
virtual address spaces. The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes (Figure 9.23).
Thanks.
linux virtual-memory shared-memory shared-file
Are sharing a memory-mapped file and sharing a memory region implemented based on each other? The following two quotes seem to say so, and seems to me that it is a chicken-egg problem.
Operating System Concepts introduces sharing a memory-mapped file in the following.
Do the multiple processes share the same file by sharing the same physical memory region holding the content of the file?
Multiple processes may be allowed to map the same ï¬Âle concurrently,
to allow sharing of data. Writes by any of the processes modify the data in
virtual memory and can be seen by all others that map the same section of
the ï¬Âle. Given our earlier discussions of virtual memory, it should be clear
how the sharing of memory-mapped sections of memory is implemented:
the virtual memory map of each sharing process points to the same page of
physical memoryâÂÂthe page that holds a copy of the disk block. This memory
sharing is illustrated in Figure 9.22.
It also introduces shared memory in the following.
Do multiple processes share a memory region by sharing a memory-mapped file?
Does a "memory-mapped file" reside on disk or main memory? I think it is on the disk, but "The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes" seems to mean that it resides in main memory.
Quite often, shared memory is in fact implemented by memory mapping
ï¬Âles. Under this scenario, processes can communicate using shared memory
by having the communicating processes memory-map the same ï¬Âle into their
virtual address spaces. The memory-mapped ï¬Âle serves as the region of shared
memory between the communicating processes (Figure 9.23).
Thanks.
linux virtual-memory shared-memory shared-file
linux virtual-memory shared-memory shared-file
asked 1 min ago
Tim
23.9k67232418
23.9k67232418
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474946%2fare-sharing-a-memory-mapped-file-and-sharing-a-memory-region-implemented-based-o%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password