note 36812 added to ref.sem

From: Date: Thu, 23 Oct 2003 11:49:19 +0000
Subject: note 36812 added to ref.sem
Groups: php.notes 
Request: Send a blank email to php-notes+get-59166@lists.php.net to get a copy of this message
Don't use semaphores to serialize access to an undefined number of resources. There is no way (yet) to know before locking if a semaphore is already locked, thus not being able to fully release the semaphore and occupying a semaphore resource for an undefined time. A possible solution is to build a shared mem pool and store there the current number of locks for a semaphore id. Cheers, Horaci Cuevas ---- Manual Page -- http://www.php.net/manual/en/ref.sem.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36812 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36812&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36812&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59166) next »