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

Andrew M. Yochum andrew at
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.



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 ---

Andrew Yochum
Digital Pulp, Inc.
andrew at

More information about the talk mailing list