Session 15 Shared Memory Programming | Linux Programming | Linux Application Programming
Автор: The SkillPedia
Загружено: 2021-08-23
Просмотров: 529
Описание:
Introduction to Shared Memory
Creating and Configuring Shared Memory Segments
Using and Protecting Shared Memory Segments
Locking and Unlocking Shared Segments
Using the ipcs and ipcrm Utilities
programming,linux programming,gpu programming,linux,system programming,linux system programming,linux application programming,message queue program in linux programming,shared memory,parallel programming models,ipc in linux programming,console programming,linux kernel programming,shared memory linux,linux shared memory
Shared memory allows two or more processes to share a chunk of memory so that each can communicate with all others.
The address spaces for parent and child processes are independent. The parent process could create a chunk of memory, but once the fork completes, the parent and child see different memory. On GNU/Linux, all processes have unique virtual address spaces, but the shared memory API permits a process to attach to a common address segment.
With all this power comes some complexity. For example, when processes share memory segments, they must also provide a means to coordinate access to them. This is commonly provided via a semaphore, which can be contained within the shared memory segment itself.
The benefit of shared memory is that we minimize copying in its entirety. The segment is shared between the two processes in their own address spaces, so bulk copies of data are not necessary.
To learn latest technology online, visit https://www.skillpedia.co
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: