How do you create and manage a shared memory segment?

Thanh Thảo

New member
How do you create and manage a shared memory segment?
Answer
Shared Memory
  1. Create the shared memory segment or use an already created shared memory segment (shmget())
  2. Attach the process to the already created shared memory segment (shmat())
  3. Detach the process from the already attached shared memory segment (shmdt())
  4. Control operations on the shared memory segment (shmctl())
 

Tìm kiếm

Back
Top