Может кто-нибудь объяснить мне о разделяемой памяти в ОС

287
user2720323

Может кто-нибудь объяснить мне, как разделяемая память связана с операционной системой?

В последнее время я часто упоминаю это.

Что это значит? Это часть памяти в оперативной памяти?

-2
«Общая память» может означать разные вещи, в зависимости от контекста. Пожалуйста, уточните контекст, в котором вы видели это, чтобы мы могли ответить на ваш вопрос. Flimzy 10 лет назад 0

2 ответа на вопрос

1
magicandre1981

This means that several programs can use the same DLL without having it loaded several time in the RAM (this would causes a very high memory usage if you have the shell32.dll loaded 50 times).

MS explained it here in this video:

Defrag Tools: #7 - VMMap

http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-7-VMMap#time=03m35s

1
kworr

There are different techniques to share memory with different outcomes:

  1. There's a program level shared memory (like IPC or dbus) for inter-process communication. Many different programs can use it to communicate and share data.
  2. There's a system level shared memory, where system linker can hold libraries that were used by more than one process.
  3. There's a hardware level shared memory, when a number of CPUs have access to a one big chunk of RAM.

For a more precise explanation you can hit a wiki.