[ Pobierz całość w formacie PDF ]
.sem_getPodręcznik PHPPoprzedniNastępnysem_get (PHP 3>= 3.6, PHP 4 >= 4.0)sem_get -- Get a semaphore idDescriptionint sem_get (int key [, intmax_acquire [, intperm]])
Returns: A positive semaphore identifier on success, or FALSE onerror.
sem_get() returns an id that can be used toaccess the System V semaphore with the given key.The semaphoreis created if necessary using the permission bits specified inperm (defaults to 0666).The number of processes that canacquire the semaphore simultaneously is set to max_acquire(defaults to 1).Actually this value is set only if the processfinds it is the only process currently attached to the semaphore.
A second call to sem_get() for the same keywill return a different semaphore identifier, but bothidentifiers access the same underlying semaphore.See also: sem_acquire() andsem_release().Notatka:This function does not work on Windows systems.PoprzedniSpis treściNastępnySemaphore and Shared Memory FunctionsPoczątek rozdziałusem_acquire
[ Pobierz całość w formacie PDF ]