php8.5
Home/ Manual/ reference / sync/ The SyncSharedMemory class

The SyncSharedMemory class

A cross-platform, native, consistent implementation of named shared memory objects.

Intro

A cross-platform, native, consistent implementation of named shared memory objects.

Shared memory lets two separate processes communicate without the need for complex pipes or sockets. There are several integer-based shared memory implementations for PHP. Named shared memory is an alternative.

Synchronization objects (e.g. SyncMutex) are still required to protect most uses of shared memory.

Class synopsis

class SyncSharedMemory { }

Syncsharedmemory

In this section

Source: reference/sync/syncsharedmemory.xml · from the official PHP manual (php/doc-en)