php教程

The SyncSharedMemory class

(PECL sync >= 1.1.0)

简介

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.

类摘要

SyncSharedMemory {
/* 方法 */
public __construct ( string $name , int $size )
public first ( void ) : bool
public read ([ int $start = 0 [, int $length ]] )
public size ( void ) : bool
public write ([ string $string [, int $start = 0 ]] )
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788