wiki:AccessScope

Version 2 (modified by moo, 7 years ago) (diff)

--

Access Scope

Access scope define the scope that shm/lock to be allow to acccess.

Includes:

Access Scopes

  1. Inter Thread
  2. Inter Process
  3. System Wide

Inter Thread

Can be accessed between threads in 1 process.

Inter Process

Can be accessed between child processes that forked by 1 mother process who init it.

System Wide

Can be accessed in the whole system, owner/group/access-mode is needed, or default. This is the only scope that attach() is required.

Due to the memory layout in difference between processes, shared memory may be allocated at different base addresses, So no pointer can be stored if shared memory is gonna shared system wide.