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

Gerald Timothy Quimpo gquimpo at
Thu Feb 13 13:49:20 EST 2003

On Friday 14 February 2003 02:36 am, 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?

php isn't multithreaded (unless there's a lot of new syntax that i'm 
unaware of in the latest version :).  so you don't need synchronized.


Gerald Timothy Quimpo  tiger*quimpo*org gquimpo* tiger*sni*ph
Public Key: "gpg --keyserver --recv-keys 672F4C78"
    Absence diminishes small loves and increases great ones, as
     the wind blows out the candle and fans the bonfire.
	                     La Rochefoucauld

More information about the talk mailing list