Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27240 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40336 invoked by uid 1010); 2 Jan 2007 19:04:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40320 invoked from network); 2 Jan 2007 19:04:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2007 19:04:33 -0000 X-Host-Fingerprint: 83.238.26.17 centrum2.piekary.net Received: from [83.238.26.17] ([83.238.26.17:23886] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/25-03249-EBCAA954 for ; Tue, 02 Jan 2007 14:04:30 -0500 Message-ID: <3E.25.03249.EBCAA954@pb1.pair.com> To: internals@lists.php.net References: <20070102122940.662ebd49.mba2000@ioplex.com> Date: Tue, 2 Jan 2007 20:04:19 +0100 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Posted-By: 83.238.26.17 Subject: Re: [PHP-DEV] Semaphores - feature request From: wojtekm86@konto.pl ("Wojciech Malota") > 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