NYCPHP Meetup

[nycphp-talk] Does PHP have an equivalent to synchronized?

Andrew M. Yochum andrew at digitalpulp.com
Thu Feb 13 14:00:28 EST 2003


You can use the sem_* functions for this behaviour to synchronize PHP scripts
executing across multiple apache processes.  They are wrappers around the Sys V
IPC functions, and are typically used to control access to shared memory or
resources that can suffer from concurrency issues.

See:
    http://www.php.net/manual/en/ref.sem.php

Andrew

On Thu, 13 Feb 2003, Phil Powell wrote:

> If anyone here is familiar with Java's "synchronized()" block, where a block of code will run as a separate thread and be forced to wait if another instance of that block is running?  If so, does PHP have its own version of that?
> 
> Just wondering
> thanx
> Phil
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 

-- 
Andrew Yochum
Digital Pulp, Inc.
212.679.0676x255
andrew at digitalpulp.com




More information about the talk mailing list