Hướng dẫn php sem_get
(PHP 4, PHP 5, PHP 7, PHP 8) sem_get — Get a semaphore id Descriptionsem_get( A second call to sem_get() for the same key will return a different semaphore identifier, but both identifiers access the same underlying semaphore. If Parameterskey max_acquire The number of processes that can acquire the semaphore simultaneously is set to permissions The semaphore permissions. Actually this value is set only if the process finds it is the only process currently attached to the semaphore. auto_release Specifies if the semaphore should be automatically released on request shutdown. Return Values Returns a positive semaphore identifier on success, or Changelog
NotesWarning When using sem_get() to access a semaphore created outside PHP, note that the semaphore must have been created as a set of 3 semaphores (for example, by specifying 3 as the See Also
soger ¶ 11 years ago
kakkau at grr dot la ¶ 6 years ago
kakkau at grr dot la ¶ 6 years ago
Dan East ¶ 1 year ago
Michael Z. ¶ 11 years ago
joeldg AT listbid.com ¶ 19 years ago
ein at anti-logic dot com ¶ 15 years ago
cyrus dot drive at gmail dot com ¶ 14 years ago
READ_ACCESS = 0; |