Home>Article>Backend Development> A preliminary study on php shared memory shmop

A preliminary study on php shared memory shmop

WBOY
WBOY Original
2016-07-28 08:25:35 1535browse

First go to the reading and writing program:


Read:

unix/linux command view:

php共享内存shmop初探

key: the unique key value of the shared memory. The shared memory uses this key to determine which part you are reading. A piece of memory.

shmid: When using key to obtain memory, you get the value of this id. It serves as an identifier for the memory block you operate on.

owner: the user who created the shared memory block

perms: the read and write permissions of the shared memory, 8 is prohibited, can be 777, consistent with the read and write permissions of the file.

bytes: the size of the memory block

nattch: the number of processes connected to the memory block

status: current status, such as: dest, about to be deleted, etc.


The above has introduced a preliminary study on PHP shared memory shmop, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn