Warning: file_put_contents(): Only -1 of 50 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
sem_remove shm_detach 세마포어 PHP Manual shm_attach (PHP 4, 5) — 공유 메모리 세그먼트를 열거나 생성 설명 int ( $key [, $memsize $perm ]] ) shm_attach() 함수는 주어진 í...
Forum und email

shm_attach

(PHP 4, PHP 5)

shm_attach — 공유 메모리 세그먼트를 열거나 생성

설명

int shm_attach ( int $key [, int $memsize [, int $perm ]] )

shm_attach()함수는 주어진 키와 함께 System V 공유 메모리를 접근하기위해 사용되는 id를 반환한다. 첫 호출은 mem_size(기본값: 설정 파일에서의 sysvshm.init_mem 값, 그렇지 않으면, 10000 바이트)과 임의의 perm-bit(기본값: 0666)과 함께 공유 메모리 세그먼트를 생성한다.

동일한 key 인자로 shm_attach()함수의 두번째 호출은 또다른 공유 메모리 identifier를 반환할 것이다. Memsize 인자와 perm 인자는 무시될 것이다.

Note: 이 함수는 윈도우즈 시스템에서는 동작하지 않는다.