September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool sem_release(int id) Releases the semaphore with the given ID.
Returns:
TRUE on success; FALSE on failure
Description:
sem_release() releases the semaphore with the ID specified by id , which must be a valid semaphore ID as returned by sem_get(). Once released, a semaphore can no longer be used by the script; however, a new semaphore ID with the same key can be acquired and used.
Version:
PHP 3 since 3.0.6, PHP 4
See also:
sem_acquire() sem_get()
Example:
sem_release($sem_id); |
Read now
Unlock full access