Re: Semaphores - feature request
| From: | Wojciech Malota | Date: | Tue, 02 Jan 2007 19:04:19 +0000 |
| Subject: | Re: Semaphores - feature request | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27240@lists.php.net to get a copy of this message | ||
> I don't understand. If your "FIFO" is some kind of refcount that won't
> work because the refcount would not be shared by multiple separate
> PHP processes. You would have to put the refcount in shared memory
> and even then there's no guarantee that the semaphore will be cleaned
> up properly because any exit routine will not run if the application
> is killed, crashes, aborts, etc.
FIFO in this context is a queue of processes which are waiting for acquiring
occupied semaphore.
This queue is managed by operating system and is implemented in mechanism of
semaphores.
I think that there must be possibility to check if this queue is empty.
Wojciech Malota