Process - Shared State (Shared Data)

1 - About

Shared state between processes

Operations upon shared states are critical sections that must be mutually exclusive. Failure to obey this rule opens up the possibility of corrupting the shared state.

3 - Method

Shared (Virtual) Memory (SHM) is shared data between process (not threads because threads are already sharing the same address space. For thread, we are talking of Shared Variable (data shared between threads).


  • Shared memory is a OS system implementation whereas
  • Shared variable management (ie concurrency management) is inside the language (synchronization, etc …)
code/process/shared_state.txt · Last modified: 2018/09/22 16:56 by gerardnico