PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

sem_get> <msg_stat_queue
Last updated: Fri, 22 Aug 2008

view this page in

sem_acquire

(PHP 4, PHP 5)

sem_acquireadquiere un semáforo, lo toma para sí

Descripción

int sem_acquire ( int $sem_identifier )

Devuelve: Verdadero si hay éxito, falso si hay errores

sem_acquire() Produce un bloqueo (de ser necesario) hasta que el semáforo puede adquirirse. Un proceso intentando adquirir un semáforo ya adquirido, se bloqueará permanentemente si adquiriendo el semáforo, excede su valor de max_acquire.

Despues de procesar una petición, cualquier semáforo adquirido por un proceso, que no sea explícitamente liberado, será liberado automñaticamente, generando un mensaje de alerta.

Véase tambien: sem_get() and sem_release().



add a note add a note User Contributed Notes
sem_acquire
gladd at trash dot eris dot qinetiq dot com
13-Apr-2004 11:02
Just to clarify what is meant by "process" above:

On the Apache webserver, many PHP requests will be executed within the same process space because it is multithreaded. However, any semaphores got and acquired by a script and not released and removed will still be automatically cleaned up by the PHP interpreter each time the script terminates.

Remove any trash before emailing!

sem_get> <msg_stat_queue
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites